ulysses/static
Kenny Van de Maele 68efa8ee53
Fix docked-modal close: chat stays offset / reopen overlaps / no animation (#1158)
Docking a modal to a window edge pushes the chat aside (body padding via
right-dock-active + --right-dock-w). Three problems on close/reopen:

1. Chat stayed offset after closing a docked modal. The close-watcher only
   reacted to the `.hidden` class or DOM removal, but the draggable modals
   (calendar, plan, workspace, document, …) close via inline `display:none`.
   Watch the `style` attribute too and treat `display:none` as closed.

2. Reopening a previously-docked singleton modal floated it off to the side,
   overlapping the chat. The reused element kept its docked inline geometry.
   Clear the content's inline position/size on close so it reopens at its CSS
   default (centered).

3. Undock wasn't animated. The transition lived on `.right/left-dock-active`,
   so removing the class dropped the transition with it and padding snapped to
   0. Move the transition to the base `body` so the push animates both ways.

Files: static/js/modalSnap.js, static/style.css.
Checks: node --check static/js/modalSnap.js; verified in-browser (dock → close
→ chat animates back; reopen → centered, no overlap).
2026-06-02 22:38:20 +09:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
js Fix docked-modal close: chat stays offset / reopen overlaps / no animation (#1158) 2026-06-02 22:38:20 +09:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js fix(ui): don't submit chat message on Enter during IME composition (#1091) 2026-06-02 22:32:50 +09:00
index.html Models: add Z.AI coding endpoint and GLM vision detection 2026-06-02 20:59:17 +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 Fix docked-modal close: chat stays offset / reopen overlaps / no animation (#1158) 2026-06-02 22:38:20 +09:00
sw.js Odysseus v1.0 2026-05-31 23:58:26 +09:00