Skip to content

Commit d85ef53

Browse files
committed
FIX: Flex behavior should shrink header items instead of brand
Fixes issue #1143
1 parent 949bb0e commit d85ef53

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/pydata_sphinx_theme/assets/styles/components/header/_header-logo.scss

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
width: auto;
77
margin: 0;
88
display: flex;
9+
flex-shrink: 0;
910
align-items: center;
1011
gap: 0.5rem;
1112

src/pydata_sphinx_theme/assets/styles/sections/_header.scss

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
// Hide the header items on mobile
3131
.navbar-header-items {
3232
display: none;
33+
flex-shrink: 1;
3334
@include media-breakpoint-up($breakpoint-sidebar-primary) {
3435
display: flex;
3536
flex-grow: 1;
@@ -52,6 +53,7 @@
5253

5354
// A little smaller because this is displayed by default on mobile
5455
#navbar-start {
56+
flex-shrink: 0;
5557
margin-right: auto;
5658
gap: 0.5rem;
5759
}

0 commit comments

Comments
 (0)