Skip to content

Commit 2e579a4

Browse files
author
Dobromir Hristov
authored
fix: small css issue with nav secondary menus becoming too bing (#684)
rdar://109801256
1 parent 5b0e6e8 commit 2e579a4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/components/DocumentationTopic/DocumentationNav.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ $sidenav-icon-padding-size: 5px;
224224
@include font-styles(documentation-nav);
225225
226226
&-settings {
227+
// ensure settings can get smaller if needed
228+
min-width: 0;
229+
227230
@include font-styles(nav-toggles);
228231
229232
@include breakpoint-only-largenav() {
@@ -246,6 +249,7 @@ $sidenav-icon-padding-size: 5px;
246249
align-items: center;
247250
color: var(--color-nav-current-link);
248251
margin-left: 0;
252+
min-width: 0;
249253
250254
&:first-child:not(:only-child) {
251255
margin-right: $nav-space-between-elements;

src/components/DocumentationTopic/DocumentationNav/LanguageToggle.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ $nav-menu-toggle-label-margin: 6px;
234234
}
235235
236236
.language {
237+
&-container {
238+
// ensure the language picker is never crushed
239+
flex: 1 0 auto;
240+
}
241+
237242
&-dropdown {
238243
-webkit-text-size-adjust: none;
239244
appearance: none;

0 commit comments

Comments
 (0)