Hub: index · watch · videos · share

Text scaling (200% zoom): avoid clipped UI

If your UI breaks when text is larger (or the user turns on UI scale), that’s an accessibility bug — even if everything “looks fine” at 100%.

Try the micro-demo: text-scaling-demo.html

The demo simulates 100%/150%/200% text size. Also test real browser zoom (Ctrl++) or your game’s UI scale setting.

What goes wrong

Small, reliable pattern

  1. Remove fixed heights from text containers and buttons. Prefer min-height and padding.
  2. Allow wrapping: use flex-wrap and avoid white-space:nowrap on labels/help text.
  3. Fix flex truncation: add min-width:0 to flexible children so long names can wrap.
  4. Prefer scroll over clipping: if a panel must be bounded, use overflow:auto (not hidden).
  5. Test at 200%: pick one “dense” screen (settings/profile/inventory) and make it your regression check.

Why it matters (games + web)

More from this hub