Repository navigation
feat(ui): more room on a phone: the title in the top bar, Find car on the map - #764
Merged
Merged
Conversation
… the map On a phone the Map page spent most of the screen before the map: the title, the period under it, the three actions wrapped onto a row of their own, and a trip list of 240 px. - On a phone the page's heading moves into the top bar, in place of the app's name; the car icon stays as the way home. The page's own row keeps the caption and the actions, so Filters and Layers share the period's row from 390 px on. - The line about a page (Trip log, Charge history, Maintenance, Climate schedules, Logs) waits behind an info button beside the heading, on every screen size, and opens in the detail modal. - Above the map the trip list folds to its title, and stays folded on this device. At 390 px the map grows from 452 to 640 px. - Find car is a button on the map, beside the zoom control, rather than a third action in the header. 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 the Map page used most of the screen before the map. The title, the period under it, the three actions wrapped onto their own row, and a 240 px trip list left the map less than half the screen.
What changes
ViewHeadermoves itsh1there with aTeleport, the same wayAppFootermoves Refresh and Settings, so it is still the page's real heading. The page's own row keeps the caption (the period) and the actions.DetailModal. New keycommon.aboutPagein every locale.tripListExpanded, a local key in the map settings likelegendExpanded). At 1024 px and wider the list sits beside the map, so it doesn't fold there.Effect
The map's height on the Map page, from the demo:
At 320 px, Filters and Layers still go below the period line, which is too wide to share their row. From 390 px they fit on one row. Nothing scrolls sideways at 320, 390 or 1440 px.
Checks
pnpm checkpasses (lint, type check, format, 2068 unit tests).ViewHeader.spec.ts: the info button and its modal, and the heading moving to the top bar on a phone.TripSidebar.spec.ts: folding, and no folding when wide. Store tests cover the new local key.MapView.spec.tsnow finds Find car on the map.The README screenshots (
pnpm screenshots) can be retaken later to show the new top bar.🤖 Generated with Claude Code