ulysses/static
Zeus-Deus b4b1d00cc5 Make tool windows resizable by dragging edges or corners
Library, Notes, and the other floating tool windows (Tasks, Calendar,
Gallery, Email, Cookbook, Brain, Settings, Theme, Compare, Research,
Sessions) could be moved and snapped but never resized — there were no
resize handles and dragging the edges did nothing.

Add a shared makeWindowResizable() helper and wire it into the existing
makeWindowDraggable() so every draggable window gains native-style
edge/corner resizing from one place:

- Grab any of the four edges or four corners to resize; the cursor
  reflects the active handle (ew/ns/nwse/nesw-resize).
- Detects pointer proximity to the border instead of injecting handle
  elements, so it works regardless of each window's overflow model
  (.modal-content scrolls its body; .notes-pane scrolls an inner el).
- Min-size clamp (320x200) and viewport clamping so a window can't be
  collapsed to nothing or dragged off-screen.
- Per-window size is remembered and restored on reopen.
- Disabled on mobile (windows are full-screen sheets there) and while a
  window is docked or fullscreen-snapped.
- Touch supported at tablet width and up; self-heals a missed pointer-up
  so a lost mouseup can't leave a window stuck in resize mode.
2026-06-01 19:49:23 +02:00
..
fonts Odysseus v1.0 2026-05-31 23:58:26 +09:00
js Make tool windows resizable by dragging edges or corners 2026-06-01 19:49:23 +02:00
lib Odysseus v1.0 2026-05-31 23:58:26 +09:00
app.js Let calendar handle Escape while open 2026-06-01 23:08:57 +09:00
index.html feat: allow memory import without session (#493) 2026-06-01 22:32:17 +09:00
landing.html Fix landing footer snap and uvicorn docs 2026-06-01 10:51:55 +09:00
login.html Odysseus v1.0 2026-05-31 23:58:26 +09:00
manifest.json Odysseus v1.0 2026-05-31 23:58:26 +09:00
style.css Make tool windows resizable by dragging edges or corners 2026-06-01 19:49:23 +02:00
sw.js Odysseus v1.0 2026-05-31 23:58:26 +09:00