Repository navigation
fix(dashboard): cards stay put when edit mode starts on a phone - #767
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-4that 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
mt-4from the edit-mode overview row inDashboardView.vue, so the row is spaced the same in both modes.DashboardView.spec.ts: the row's margin classes are the same before and during editing. It fails without the fix.Checks
pnpm checkpasses (2069 unit tests).🤖 Generated with Claude Code