Skip to content

Commit 4c2e90e

Browse files
fix: tighten secondary-nav cluster left edge
Strips padding-left from the first .nav-link in SecondaryNavLinks so the cluster sits flush against neighboring widgets in desktopRight (e.g. the notifications bell). Inter-link padding within the cluster is preserved. Refs #245 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fc3f796 commit 4c2e90e

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

shell/header/app.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@ header {
1111
color: var(--pgn-color-active, #fff);
1212
}
1313
}
14+
15+
// Secondary-nav cluster sits flush against whatever's to its left
16+
// (notifications bell, etc.) — those neighbors bring their own padding.
17+
.secondary-nav-links > :first-child {
18+
padding-left: 0;
19+
}
1420
}

shell/header/desktop/SecondaryNavLinks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Slot } from '../../../runtime';
33

44
export default function SecondaryNavLinks() {
55
return (
6-
<Nav className="flex-nowrap">
6+
<Nav className="flex-nowrap secondary-nav-links">
77
<Slot id="org.openedx.frontend.slot.header.secondaryLinks.v1" />
88
</Nav>
99
);

0 commit comments

Comments
 (0)