Skip to content

Make bg usable on phones and stop hotkey labels flipping after load - #32

Merged
AlexanderHott merged 2 commits into
mainfrom
mobile-friendly
Nov 24, 2026
Merged

AlexanderHott merged 2 commits into
mainfrom
mobile-friendly

Conversation

@AlexanderHott

Copy link
Copy Markdown
Owner

On a phone, bg rendered as a shrunken desktop page: there was no viewport meta, so everything was tiny and hotkey hints like · g h cluttered every nav link. Separately, hotkey labels were server-rendered as if every user were on Linux, so Mac users saw ctrl+↵ 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-Agent and passes it to a HotkeysProvider, so server and client agree. Every label goes through one HotkeyHint component, which also hides itself on touch screens.

Phone layout fixes:

  • viewport meta tag
  • org nav is one horizontally scrolling row instead of a tall wrapping sticky bar
  • background removal toolbar only sticks from sm up, so three sticky bars don't eat the screen
  • duplicate "organizations" link hidden on phones
  • padding on sign-in / sign-up
  • dvh instead of vh
  • 16px inputs on touch screens so iOS stops zooming on focus

Also 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
sign in

Organizations
organizations

Tools
tools

Remove background
remove background

Screenshots live on the pr-assets/mobile-friendly branch; delete it after merge.

Testing

  • pnpm typecheck, pnpm test (101 passing), pnpm build:web
  • SSR HTML for a Mac UA renders ⌘ ↵, for a Windows UA ctrl+↵; the hotkeys warning is gone

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

AlexanderHott and others added 2 commits November 23, 2026 18:05
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>
@AlexanderHott
AlexanderHott merged commit 008edaf into main Nov 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant