Skip to content

Commit 3e7ee3e

Browse files
committed
fix: restore navbar item hiding for desktop - secondary nav handles module links
1 parent f985329 commit 3e7ee3e

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

website/docusaurus.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ const config = {
5454
autoModeGroup: {
5555
label: 'Amazon EKS Essentials',
5656
items: [
57-
{ to: '/docs/fastpaths/setup', label: 'Intro' },
57+
{ to: '/docs/fastpaths/', label: 'Intro' },
58+
{ to: '/docs/fastpaths/setup', label: 'Setup' },
59+
{ to: '/docs/fastpaths/navigating', label: 'Navigating the labs' },
5860
{ to: '/docs/fastpaths/developer', label: 'Developer' },
5961
{ to: '/docs/fastpaths/operator', label: 'Operator' },
6062
],

website/src/css/custom.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,12 @@
276276

277277
/* Hide navbar items on desktop - they're in secondary nav */
278278
.navbar__item {
279-
flex-grow: 1;
280-
flex-shrink: 1;
281-
padding: 0 0px;
282-
font-size: clamp(0.8em, 1.2vw, 1em);
283-
white-space: nowrap;
284-
text-overflow: ellipsis;
279+
display: none;
280+
}
281+
282+
/* Show navbar items only in mobile sidebar */
283+
.navbar-sidebar .navbar__item {
284+
display: block;
285285
}
286286

287287
.navbar__items--right .dropdown--right {

0 commit comments

Comments
 (0)