Repository navigation
Make bg usable on phones and stop hotkey labels flipping after load - #32
Merged
Merged
Conversation
The page had no viewport meta, so phones drew it at desktop width and shrank it. Hotkey labels were server-rendered for Linux, so Mac users saw ctrl+↵ until hydration swapped it to ⌘ ↵. The root loader now detects the platform from the request's User-Agent and feeds HotkeysProvider. Labels go through HotkeyHint, which also hides them on touch screens. Phones get dvh heights, a scrolling org nav, padded auth pages, and 16px inputs so iOS stops zooming on focus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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, bg rendered as a shrunken desktop page: there was no viewport meta, so everything was tiny and hotkey hints like
· g hcluttered every nav link. Separately, hotkey labels were server-rendered as if every user were on Linux, so Mac users sawctrl+↵until hydration swapped it to⌘ ↵(and dev logged[hotkeys] Server-rendered label uses 'linux').Now the root loader detects the platform from the request's
User-Agentand passes it to aHotkeysProvider, so server and client agree. Every label goes through oneHotkeyHintcomponent, which also hides itself on touch screens.Phone layout fixes:
smup, so three sticky bars don't eat the screendvhinstead ofvhAlso drops the AGENTS.md rule against verifying in a browser.
Screenshots
iPhone-sized viewport (390×844), before on the left, after on the right. The palm tree and "TanStack Router" badges are dev-only devtools.
Sign in

Organizations

Tools

Remove background

Screenshots live on the
pr-assets/mobile-friendlybranch; delete it after merge.Testing
pnpm typecheck,pnpm test(101 passing),pnpm build:web⌘ ↵, for a Windows UActrl+↵; the hotkeys warning is goneCreated with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code