Skip to content

Commit d395733

Browse files
authored
docs: fix breadcrumbs overflow (#9700)
This makes sure it's not hidden. We can wrap it or move the buttons.
1 parent 2849d75 commit d395733

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/components/PageContent/PageContent.astro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,28 @@ const suppressTitle = content.suppressTitle;
103103
}
104104
:global(.page-heading-bar__breadcrumbs) {
105105
min-width: 0;
106+
position: relative;
106107
}
107108
:global(.page-heading-bar__breadcrumbs .breadcrumbs) {
108109
margin: 0;
109110
display: inline-flex;
110111
align-items: center;
112+
width: 100%;
111113
}
112114
:global(.page-heading-bar__breadcrumbs .breadcrumbs ol) {
113-
flex-wrap: nowrap;
115+
display: flex;
116+
flex-wrap: wrap;
114117
gap: 0.25rem;
118+
row-gap: 0.15rem;
119+
padding: 0;
120+
overflow: visible;
115121
}
116122
:global(.page-heading-bar__breadcrumbs .breadcrumbs li) {
117123
max-width: none;
124+
flex-shrink: 1;
125+
white-space: normal;
126+
overflow: visible;
127+
text-overflow: clip;
118128
}
119129
:global(.docs-toolbar-actions--heading) {
120130
display: inline-flex;

src/styles/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
--theme-text-md: 1rem;
2222
--theme-text-sm: 0.9375rem;
2323
--theme-text-xs: 0.875rem;
24-
--docs-toolbar-mobile-breakpoint: 40em;
24+
--docs-toolbar-mobile-breakpoint: 80em;
2525
/* Animation helpers */
2626
--theme-ease-bounce: cubic-bezier(0.4, 2.5, 0.6, 1);
2727
}

0 commit comments

Comments
 (0)