Skip to content

Commit d907398

Browse files
committed
fix(ui): keep close button in flow, fix user section indentation
- Close button: use align-self: flex-end with negative margins instead of absolute positioning (which overlapped first two nav items) - User panel: reset full padding (not just padding-inline) on mobile to eliminate inherited desktop spacing - Settings link and signout button: zero out padding-inline on mobile so text aligns with nav links and divider lines
1 parent 3605de4 commit d907398

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

  • src/design-system/components/flex-header

src/design-system/components/flex-header/styles.css

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,8 @@ flex-header {
364364

365365
.flex-header__close-btn {
366366
display: block;
367-
position: absolute;
368-
inset-block-start: 0.25rem;
369-
inset-inline-end: 0.25rem;
367+
align-self: flex-end;
368+
margin: -0.5rem -0.5rem 0;
370369
}
371370

372371
.flex-header__nav-list {
@@ -424,19 +423,28 @@ flex-header {
424423
}
425424

426425
.flex-header__user-identity {
427-
padding-inline: 0;
426+
padding: 0;
428427
}
429428

430429
.flex-header__user-theme {
431-
padding-inline: 0;
430+
padding: 0;
432431
}
433432

434433
.flex-header__user-settings {
434+
padding: 0;
435+
}
436+
437+
.flex-header__user-settings-link {
435438
padding-inline: 0;
436439
}
437440

438441
.flex-header__user-signout {
442+
padding: 0;
443+
}
444+
445+
.flex-header__user-signout-btn {
439446
padding-inline: 0;
447+
text-align: start;
440448
}
441449

442450
/* Signed-out parallel: theme toggle as a utility section at the bottom of the panel */

0 commit comments

Comments
 (0)