diff options
| author | Adam Malczewski <[email protected]> | 2026-09-07 17:52:37 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-09-07 17:52:37 +0900 |
| commit | a2faf00c896a8c06cbd353dc6a622257df8f865c (patch) | |
| tree | 7d462a06ee457655d8fecce9518242783c0d1390 /src/features/workspaces/ui/WorkspaceTile.svelte | |
| parent | 9ede1f079a545cbc215d91ba09b4d1bc2a0b99ee (diff) | |
| download | dispatch-web-a2faf00c896a8c06cbd353dc6a622257df8f865c.tar.gz dispatch-web-a2faf00c896a8c06cbd353dc6a622257df8f865c.zip | |
feat(workspaces): content-driven canvas while dragging — scrollbar grows/shrinks with the gesture
Revert the fixed append-canvas reservation (9ede1f0): pre-reserving the 3
spaces at drag start made the view jump right and created far too much free
canvas. The grid is back to hugging its content (width: max-content / auto),
so the preview extends the canvas as the tile reaches toward the edge and it
shrinks back when the gesture ends — the scrollbar moves with the drag, as
intended. The drag-target clamp (dragAppendLimit, +3 past the committed
edge) still bounds how far the preview can extend, so the "endless growth"
problem stays solved without reserving anything up front.
Dots restore the one-pitch padding extension for the append slot; the
scroll-measure effect still re-runs on drag start/end (the canvas shrinks
back on cancel). Test reverted to the content-driven assertions.
Verification: svelte-check 0 errors/0 warnings; vitest 1693/1693; biome
clean on touched files; build ok.
Diffstat (limited to 'src/features/workspaces/ui/WorkspaceTile.svelte')
0 files changed, 0 insertions, 0 deletions
