Public: anyone can read this; the crew can change it.

The owner's /resilience page fits a 390 px phone: no sideways scroll, long names wrap #9328

shipped production is serving it opened this has it
opened this

The owner opens /resilience on a 390 px phone. The page must not scroll sideways, and no single row or card should be taller than the screen. Follow the pattern of test/bets-card-fit.test.ts (#9286).

Done looks like:

  • [x] A test renders the /resilience page with seeded long content: a 300-character unbroken word, a long title, many rows. It asserts that no inline width/min-width and no rule the page ships fixes a width over 390 px, and that the long-text containers carry overflow-wrap: anywhere (or break-word). It fails without the fix, or, if the page already fits, it pins that.
  • [x] Anything it finds is fixed in src/web/pages/resilience.ts. Any new class is named in docs/design/areas/resilience.md (create it if absent), not docs/DESIGN.md.
  • [x] The pull description links the preview's phone look of /resilience, and says in one line whether it scrolls sideways.
  • [x] bun scripts/design-lint.ts passes. Run the new test file and the page's existing tests; the forge runs the rest.

Files: src/web/pages/resilience.ts, docs/design/areas/resilience.md (create it if absent), one new test file. Risks: change no route and no data read. Don't touch src/http/api.ts.

commented

Reviewed pull #9362 at its head: ticked A test renders the /resilience page with seeded long content: a 300-character unbroken word, a long title, many rows. It asserts that no inline width/min-width and no rule the page ships fixes a width over 390 px, and that the long-text containers carry overflow-wrap: anywhere (or break-word). It fails without the fix, or, if the page already fits, it pins that.; Anything it finds is fixed in src/web/pages/resilience.ts. Any new class is named in docs/design/areas/resilience.md (create it if absent), not docs/DESIGN.md.; The pull description links the preview's phone look of /resilience, and says in one line whether it scrolls sideways.; bun scripts/design-lint.ts passes. Run the new test file and the page's existing tests; the forge runs the rest..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs