Commit 7ca2645
committed
Fix horizontal scrolling on phones and tighten the mobile layout
The page scrolled 232px sideways at 375px. Two instances of the same trap:
a flex item and a grid item both default to min-width:auto, so neither the
pre nor the block containing it would shrink below the longest command,
"cp -r Foreman/plugins/foreman/skills/foreman ~/.agents/skills/". The pre's
own overflow-x never engaged because it was never allowed to be narrow.
min-width:0 on both, and the commands scroll inside their own boxes.
I had previously called this verified. The measurement was wrong: the tool
reported a 607px viewport while claiming 375, so the check passed against a
width no phone has. Measured this time inside a 375px iframe, and swept
320, 360, 375, 414, 480, 768 and 1024. All zero.
Mobile layout, under 34rem:
- Copy sits under the command instead of taking a third of the line.
- Gutters 1.75rem to 1.25rem, and section padding tightened.
- The footer wordmark and cutout get explicit sizes so they fill the sheet
rather than shrinking to fit one line, with a smaller step under 24rem.
- The footer's "Then say" block is hidden. Two columns apart on desktop, it
stacked directly under the install section's identical line on a phone.
Desktop renders byte identical to the committed screenshot.1 parent b2c78a2 commit 7ca2645
1 file changed
Lines changed: 44 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
316 | 318 | | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
323 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
| |||
408 | 415 | | |
409 | 416 | | |
410 | 417 | | |
| 418 | + | |
| 419 | + | |
411 | 420 | | |
412 | | - | |
| 421 | + | |
413 | 422 | | |
| 423 | + | |
414 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
415 | 456 | | |
416 | 457 | | |
417 | 458 | | |
| |||
710 | 751 | | |
711 | 752 | | |
712 | 753 | | |
713 | | - | |
| 754 | + | |
714 | 755 | | |
715 | 756 | | |
716 | 757 | | |
| |||
0 commit comments