Skip to content

fix(dashboard): cards stay put when edit mode starts on a phone - #767

Merged
joszz merged 1 commit into
mainfrom
fix/dashboard-edit-mode-no-shift
Nov 26, 2026
Merged

joszz merged 1 commit into
mainfrom
fix/dashboard-edit-mode-no-shift

Conversation

@joszz

@joszz joszz commented Nov 26, 2026

Copy link
Copy Markdown
Owner

On a phone, a long press on the dashboard to start editing pushed every card down by 24 px.

Cause

In edit mode, the row with the car diagram and the location map had an extra mt-4 that the normal row doesn't have. It's a leftover from an older edit mode. It used to collapse into the bottom margin of the title row above it, so it never showed. Since #766 hides that empty title row on touch phones, nothing absorbed it any more.

Fix

  • Removed mt-4 from the edit-mode overview row in DashboardView.vue, so the row is spaced the same in both modes.
  • New test in DashboardView.spec.ts: the row's margin classes are the same before and during editing. It fails without the fix.

Checks

  • pnpm check passes (2069 unit tests).
  • Measured in demo mode, the cards' positions before and after entering edit mode:
    • Pixel 7 emulation, long press: the cards moved 24 px down before the fix and don't move after it.
    • 1440 px, Edit layout button: no movement before or after the fix.
  • The drag handles and remove buttons on the top card stay fully visible below the top bar.

🤖 Generated with Claude Code

The edit-mode row of the car diagram and the location map carried a
top margin the row outside edit mode does not have, left over from an
older edit mode. It used to fold into the title row's own margin, so
nothing showed. Since #766 hides that row on a touch phone, every card
dropped 24 px the moment a long press started editing.

The row is now spaced the same in both modes, and a test compares
them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge November 26, 2026 07:08
@joszz
joszz merged commit 3c14f87 into main Nov 26, 2026
27 checks passed
@joszz
joszz deleted the fix/dashboard-edit-mode-no-shift branch November 26, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant