bug: "Request desktop site" on a phone still shows the mobile layout (desktop breakpoint is 1024px, phones use ~980px)
Back to our planSummary
On a phone, "Request desktop site" still shows the mobile version: the hamburger menu and the stacked tablet layout. Phones show a desktop page about 980px wide, and this site only switches to its desktop layout at 1024px, so 980px lands just below it.
Problem
Reported by Amine on 2026-10-31 (Claude in Chrome side panel): he asked his phone for the desktop version yesterday and kept getting the mobile one.
Found:
- The site never checks the device or browser (no user-agent code), so the server isn't choosing a version. It sends the same page to everyone and the CSS picks the layout from the width.
- Rendering the live site at 980px wide: the desktop navigation is hidden and the "Open menu" button shows. At 1024px the desktop navigation shows.
- The
lgbreakpoint is 64rem (1024px) insrc/app/(frontend)/globals.css, andSiteHeaderBar.client.tsxrepeats it in amatchMediacall. The header comment says the nav doesn't fit below 1024px, but measured, the nav row needs about 920px including its padding, so it fits at 960px.
Proposed fix
Lower lg to 60rem (960px), so every lg: layout (header, grids, sidebars) switches at 960px. A phone in desktop mode (about 980px) then gets the full desktop layout. Tablets are unaffected in portrait (768, 810, 834px) and in landscape (1024px and up). Only widths from 960 to 1023px change, which few devices use. Update the header's matchMedia to match and the docs that state the value.
Native-first check: this is one Tailwind theme value; no plugin or new code. A "view desktop site" button would only help on pages that already ignore the browser's own control, so it isn't needed.
Acceptance criteria
- Not done: At 960 and 980px the desktop navigation shows, the menu button doesn't, and the page doesn't scroll sideways.
- Not done: At 959px the mobile menu still shows.
- Not done: At 320, 430, 768, 1024, 1280 and 1920px nothing looks different from before, in light and dark.
- Not done: The header's menu-closing listener uses the same breakpoint.
- Not done: Docs that state the
lgvalue are updated. - Not done: Parent: #190. The PR carries the
shared-componentlabel.
Area
frontend, styling
Priority
priority: medium
Generated by Claude Code, opens in a new tab