diff --git a/NEWS.md b/NEWS.md index 3e3f620af2..eeefa08547 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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: diff --git a/inst/BS5/assets/pkgdown.scss b/inst/BS5/assets/pkgdown.scss index 72adec0820..f362d35ddf 100644 --- a/inst/BS5/assets/pkgdown.scss +++ b/inst/BS5/assets/pkgdown.scss @@ -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;