Skip to content

Commit

Permalink
Fix mobile scrollburglar (r-lib#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored and SebKrantz committed Jun 1, 2024
1 parent 113e17c commit 23f6ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pkgdown (development version)

* The mobile version of pkgdown sites no longer has a scrollburglar (a small amount of horizontal scroll) (#2179, @netique).

# pkgdown 2.0.9

* Fixes for regressions in 2.0.8:
Expand Down
3 changes: 2 additions & 1 deletion inst/BS5/assets/pkgdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ aside {

// Add some visual distinction between content and "sidebar" on mobile
@include media-breakpoint-down(sm) {
aside {
// Additional specificity needed to override bootstrap width on .row > *
.row > aside {
margin: 0.5rem;
width: calc(100vw - 1rem);
background-color: $gray-100;
Expand Down

0 comments on commit 23f6ee0

Please sign in to comment.