Commit 7467b66
committed
fix(ui): rewrite mobile nav layout from flex to block, rem to px
Root cause: the mobile nav used display:flex, which silently disabled
float:right on the close button. The nav-list (also display:flex)
created a block formatting context that couldn't overlap the float.
Combined with hardcoded rem values (vs the design system's px tokens),
this caused the close button to consume ~3.25rem of vertical space,
pushing nav items down by roughly two section-heights.
Rewrite the mobile nav panel to use display:block throughout:
- Nav panel: display:block (via .is-visible), not flex
- Nav list: display:block, not flex — no BFC, float works naturally
- Nav links: display:block with block-size:auto (override desktop 100%)
- Close button: float:right works as originally designed
- All rem values → px or design token variables
- Physical properties (top/right/bottom) for iOS compatibility
- First nav item border removed, link padding-inline zeroed1 parent bdbb4ac commit 7467b66
1 file changed
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
350 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
359 | 357 | | |
360 | 358 | | |
361 | 359 | | |
362 | | - | |
| 360 | + | |
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
368 | 366 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 367 | + | |
| 368 | + | |
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
377 | | - | |
378 | | - | |
379 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
380 | 376 | | |
381 | 377 | | |
382 | 378 | | |
| |||
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
391 | | - | |
392 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
393 | 390 | | |
394 | 391 | | |
395 | 392 | | |
| |||
0 commit comments