Skip to content

Commit

Permalink
FIX: Flex behavior should shrink header items instead of brand
Browse files Browse the repository at this point in the history
Fixes issue pydata#1143
  • Loading branch information
bheberlein committed Feb 5, 2023
1 parent 949bb0e commit d85ef53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
width: auto;
margin: 0;
display: flex;
flex-shrink: 0;
align-items: center;
gap: 0.5rem;

Expand Down
2 changes: 2 additions & 0 deletions src/pydata_sphinx_theme/assets/styles/sections/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
// Hide the header items on mobile
.navbar-header-items {
display: none;
flex-shrink: 1;
@include media-breakpoint-up($breakpoint-sidebar-primary) {
display: flex;
flex-grow: 1;
Expand All @@ -52,6 +53,7 @@

// A little smaller because this is displayed by default on mobile
#navbar-start {
flex-shrink: 0;
margin-right: auto;
gap: 0.5rem;
}
Expand Down

0 comments on commit d85ef53

Please sign in to comment.