Offset the dragged copy below right of the pointer (Feature 14)
CI / ci (push) Successful in 3m30s
CI / ci (pull_request) Successful in 3m20s

The floating copy sat where it was grabbed, over the hovered day's
"Drop to swap / Replaces ..." text. It now floats 48 px below and to
the right of the pointer, flipping left or up where it would leave the
viewport, so the day's current dinner stays readable during a drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 15:27:49 -04:00
co-authored by Claude Opus 5.5
parent 3d6c1109c8
commit 621fdef42b
4 changed files with 53 additions and 13 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ function Grip() {
// Draggable is a dinner of the panel or the strip, dragged onto a day to
// swap it in: a button whose content is the row or the chip. While it is
// dragged it is a dashed ghost, and with a pointer a copy of it floats
// under the pointer, lifted and tilted.
// below right of the pointer, lifted and tilted.
function Draggable({
dinner,
fromQuestLog,