Skip to content

Commit df10a87

Browse files
authored
Unset flex property on navbar-right container (#286)
* Close rstudio/flexdashboard#316: unset flex property on navbar-right container * Resave data (GitHub Action) * Just undo the flex: 1 as it doesn't seem needed in the first place * Set margin-left:auto since this is the BS4 recommendation * Resave data (GitHub Action) * Update news Co-authored-by: cpsievert <[email protected]>
1 parent aa5a842 commit df10a87

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

NEWS.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Closed #251: Added new BS4 Sass variables, `$navbar-light-bg` and `$navbar-dark-bg`, for more easily customizing the navbar's background color (#253)
55
* Closed #236, #230, #242, #187, #215, #250: Addressed various cosmetic issues with CSS (#249).
66
* Closed #227: bs_themer() now overlays a spinner during Sass compilation (#243).
7+
* Closed https://github.com/rstudio/flexdashboard/issues/316: fixed bug with navbar nav alignment (#286).
78

89
# bslib 0.2.4
910

inst/bs3compat/_navbar_compat.scss

+2-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020
@extend .sticky-top;
2121
}
2222

23-
ul.nav.navbar-nav {
24-
flex: 1;
25-
-webkit-flex: 1;
26-
&.navbar-right {
27-
justify-content: flex-end;
28-
-webkit-justify-content: flex-end;
29-
}
23+
.navbar-nav.navbar-right {
24+
margin-left: auto;
3025
}
3126

3227
ul.nav.navbar-nav>li:not(.dropdown) {

inst/css-precompiled/4/bootstrap.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)