Commit 5af89c7
fix(demo): pin text-size-adjust on PinDemo so large system fonts don't crop the card
Chat bubbles in PinDemo / MobilePinDemo use px-based font sizes (text-[12px]
etc.) inside a fixed-height container with overflow-hidden. When a user
sets their phone's system font to "Large" or enables Chrome's Text Scaling
accessibility setting, Android Chrome (and iOS Safari in some configs)
multiplies px text sizes, which pushes bubble heights past BODY_H=340 and
the card clips the last line — visible as the demo "cutting off".
The demo is a visual illustration, not readable prose, so it's treated
like a video/screenshot: textSizeAdjust: 100% locks it to the designed
size. All other text on the page (hero, inputs, articles) still respects
accessibility font-size settings.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent c1f3933 commit 5af89c7
2 files changed
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
340 | 349 | | |
341 | 350 | | |
342 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
345 | 353 | | |
346 | 354 | | |
347 | 355 | | |
| |||
0 commit comments