Public: anyone can read this; the crew can change it.
The desk and a lead's page work on a phone: no sideways scroll, readable text, buttons a thumb can hit #72
Check · Review · Land · Live done — Landed and live in production.
The desk, a lead's page, the profile and Activity now have phone styling under 40rem. I haven't opened any of the pages on a real phone or at 375px. I only checked the stylesheet rules and the viewport meta in tests, so judge the layout in the preview.
shipped production is serving it deploy aba151a
The desk, a lead's page, the profile and Activity now have phone styling under 40rem. I haven't opened any of the pages on a real phone or at 375px. I only checked the stylesheet rules and the viewport meta in tests, so judge the layout in the preview.
src/design.test.ts and src/server.test.ts pass (43 tests) and bun run lint:design is clean. I did not run the full bun test. bun x tsc --noEmit couldn't run here: bun x tsc printed the TypeScript compiler's help text instead of checking anything.
What changed
static/app.css: one new@media (max-width: 40rem)block, CSS only, using tokens.
- Text size: --text-sm is raised to 1rem, so no text is under 16px. The base text and inputs were already 16px.
- Lead rows: each row becomes one column with the clock above the words. The desk is already a list, not a table, so there is nothing to scroll sideways.
- Buttons: .actions and .states become full-width stacked buttons, so approve, skip, log a call, book a showing and mark lost are all at least 44px tall. The .views tabs and the "Clear" link get the same minimum height, and buttons now wrap their text.
- Other fixes: the header nav wraps, the plan rows stack, and the search button drops below the box.
- Viewport meta: every page already sent it, because they all go through
layout()insrc/pages/layout.ts. I added a test that locks it in. src/design.test.ts: the new tests check the viewport meta and the phone rules for the lead list, the buttons and the 16px text.docs/design/areas/desk.md: describes the phone rules. There is no new component class.
I didn't touch src/routes.ts or the markup, and added no JavaScript or dependencies. Nothing in the stylesheet changes size on first paint, and the contract table is untouched.
To try it, open the preview at a 375px viewport and check the signed-out front page, the desk, a lead, the profile and Activity.
🤖 Generated with Claude Code
Clean CSS-only change. The 40rem block lands after tokens.css, so the --text-sm override wins (checked in the preview: the stylesheet is served with the block and the viewport meta is on the page). No tables exist, so lists stack and nothing scrolls sideways. Buttons, tabs and Clear links get the 44px minimum, and the existing summary rules already cover the log-call and book-showing bars. Contract untouched, no new class, no dependency. I did not render at 375px; the judgement rests on reading the rules.
The desk, a lead's page, the profile and Activity now have phone styling under 40rem. I haven't opened any of the pages on a real phone or at 375px. I only checked the stylesheet rules and the viewport meta in tests, so judge the layout in the preview.
src/design.test.tsandsrc/server.test.tspass (43 tests) andbun run lint:designis clean. I did not run the fullbun test.bun x tsc --noEmitcouldn't run here:bun x tscprinted the TypeScript compiler's help text instead of checking anything.What changed
static/app.css: one new@media (max-width: 40rem)block, CSS only, using tokens.- Text size:
--text-smis raised to 1rem, so no text is under 16px. The base text and inputs were already 16px. - Lead rows: each row becomes one column with the clock above the words. The desk is already a list, not a table, so there is nothing to scroll sideways. - Buttons:.actionsand.statesbecome full-width stacked buttons, so approve, skip, log a call, book a showing and mark lost are all at least 44px tall. The.viewstabs and the "Clear" link get the same minimum height, and buttons now wrap their text. - Other fixes: the header nav wraps, the plan rows stack, and the search button drops below the box.layout()insrc/pages/layout.ts. I added a test that locks it in.src/design.test.ts: the new tests check the viewport meta and the phone rules for the lead list, the buttons and the 16px text.docs/design/areas/desk.md: describes the phone rules. There is no new component class.I didn't touch
src/routes.tsor the markup, and added no JavaScript or dependencies. Nothing in the stylesheet changes size on first paint, and the contract table is untouched.To try it, open the preview at a 375px viewport and check the signed-out front page, the desk, a lead, the profile and Activity.
🤖 Generated with Claude Code
Closes #70