]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix(navbar): ensure .navbar-collapse behaves as intended (#33022)
authorGaël Poupard <ffoodd@users.noreply.github.com>
Tue, 9 Feb 2021 18:54:37 +0000 (19:54 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Feb 2021 18:54:37 +0000 (20:54 +0200)
scss/_navbar.scss

index 837f487e258a9136247b922b5a4e5e276f5016ca..21126b4ede515d9a1a7d59d95526728734a5b10a 100644 (file)
 // the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
 // on the `.navbar` parent.
 .navbar-collapse {
+  flex-basis: 100%;
   flex-grow: 1;
   // For always expanded or extra full navbars, ensure content aligns itself
   // properly vertically. Can be easily overridden with flex utilities.
 
         .navbar-collapse {
           display: flex !important; // stylelint-disable-line declaration-no-important
+          flex-basis: auto;
         }
 
         .navbar-toggler {