ulysses/static
James Arslan b3599d84f7
Fix drag-and-drop files landing behind the panes in Compare (#818)
In Compare each pane renders into a sandboxed <iframe>. A file dropped on
a pane was handled by the iframe (browser default), so the browser loaded
the file *inside* the pane — appearing 'behind' the app — instead of
attaching it. The existing #chat-container drop handler never sees the
event because drag events don't bubble out of an iframe.

While a file drag is active in Compare, raise a single full-window drop
shield above the panes/iframes so the drop lands on the parent document,
then route the files into the shared composer (the same pending-files
pipeline the file picker and paste already use). Scoped to Compare via the
.compare-active class, so normal chat and the tool dropzones (gallery, RAG,
document editor, …) are unaffected.

Verified with a headless-Chromium integration test: synthetic file
dragover raises the shield, drop attaches the file to the composer, and
non-Compare mode is unaffected. Also ran node --check static/app.js.
2026-06-02 11:14:59 +09:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
js Ignore AltGr keystrokes in Ctrl+Alt keyboard shortcuts (#825) 2026-06-02 11:12:54 +09:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js Fix drag-and-drop files landing behind the panes in Compare (#818) 2026-06-02 11:14:59 +09:00
index.html Merge branch 'pr-673' into visual-pr-playground 2026-06-02 06:26:32 +09:00
landing.html feat: Add mobile hamburger navigation menu and toggle functionality 2026-06-01 15:57:01 +04:00
login.html Improve accessibility across core flows (#86) 2026-06-01 22:04:00 +02:00
manifest.json Odysseus v1.0 2026-05-31 23:58:26 +09:00
style.css Polish task UI slash commands and Ollama serving 2026-06-02 09:36:03 +09:00
sw.js Odysseus v1.0 2026-05-31 23:58:26 +09:00