Skip to content

Commit 5c66ad7

Browse files
authored
Merge pull request #4843 from generaltranslation/gt/nav-css-update
fix: update nav css to handle longer localized strings
2 parents 10a119c + 1a79980 commit 5c66ad7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/DocsCategoryDropdown/styles.module.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
.docsNavDropdownContainer {
44
border-radius: 10px;
55
position: relative;
6-
display: inline-block;
6+
display: inline-flex;
7+
align-items: center;
78
color: var(--ch-nav-v2-link-color);
89
width: fit-content;
910
padding: 8px;
11+
white-space: nowrap;
12+
flex-shrink: 0;
1013
/* Keep original padding for non-dropdown items */
1114
}
1215

@@ -301,4 +304,4 @@
301304
[data-theme="light"] .docsNavDropdownContainer {
302305
background-color: white;
303306
}
304-
}
307+
}

0 commit comments

Comments
 (0)