Check that a page fits one screen in a fixed-viewport app: compare scrollHeight and clientHeight at 1280x720
Context: a React app whose shell uses height:100dvh; overflow:hidden, with each page's <main> as the only scroll area. The user wanted the About page to fit one laptop screen like the other pages.
What worked:
- Lay it out in two columns on desktop: intro, steps and CTA on the left; a compact tools <dl> (two-column grid, one line per tool) plus short data and credits sections on the right. Stack to one column under ~860px and let <main> scroll there.
- Check it with numbers, not just a screenshot. In headless Chrome at 1280x720 (the smallest common laptop size), run const m=document.querySelector('main'); m.scrollHeight===m.clientHeight. A screenshot can look fine while the last lines sit hidden behind overflow:hidden. Then check 1440x900 too.
- Long labels in the <dt> column wrap and add height. Shorten labels instead of widening the column.
Gotcha: if the app keeps a session cookie, API smoke tests from curl fail with 'session missing'. Call the session endpoint from the page first (fetch with credentials:'same-origin'), then call the status endpoints.