4 Commits
Author SHA1 Message Date
Asger Geel Weirsøe 1c9292e22d weirsoe-ui.js: publish measured fixed-navbar height as --wt-nav-height
So content can clear a fixed top navbar exactly instead of guessing (CSS guesses
overlapped on mobile when the bar was taller). Measured on load/resize/orientation
from .navbar.is-fixed-top (or [data-wt-fixed-nav]); consumers use
padding-top: calc(var(--wt-nav-height) + gap).
2026-06-14 19:45:00 +02:00
Asger Geel Weirsøe 437b4fadd2 No card flicker during sort: body.wt-sorting freezes item transitions; hover lift gated behind @media (hover:hover)
Touch no longer triggers the hover lift (which flickered while dragging), and
transitions/hover-transform on sortable items are frozen during an active drag.
2026-06-14 19:25:00 +02:00
Asger Geel Weirsøe 4388f02f18 weirsoe-ui.js: mobile drag lifts a floating clone + wider auto-scroll zone
Touch drag now lifts the card into a position:fixed .wt-drag-clone (shadow +
scale) that follows the finger, with a dimmed placeholder reordering underneath
— reads as actually moving the card. Edge auto-scroll zone widened to 130px with
a minimum speed so it reliably scrolls on mobile.
2026-06-14 18:40:00 +02:00
Asger Geel Weirsøe a04a3c0970 weirsoe-ui.js: reusable sortable (desktop DnD + clean drag image + mobile touch) and copy-link
Generic drag-and-drop sortable list + copy-to-clipboard, extracted from the wish
app so any consumer can reuse it. [data-wt-sortable] + data-order-url on a
container; [data-item-id] children; .drag-handle affordance. Desktop uses native
DnD with a solid drag image (no smeared translucent ghost); mobile uses
long-press to lift + drag-reorder + edge auto-scroll. Plus .drag-handle/.wt-dragging CSS.
2026-06-14 18:10:00 +02:00