Skip to content

Commit 59829f5

Browse files
authored
Merge pull request #285 from alsolovyev/fix/horizontal-scrollbar
Fix horizontal scrollbar on small screens
2 parents 6ff8b7e + 185550d commit 59829f5

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/frontend/styles/components/sidebar.pcss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.docs-sidebar {
2-
width: 100vw;
32

43
/* Bottom and Left coord of the "Hide Sidebar" toggler */
54
--hide-sidebar-toggler-offset: 11px;

src/frontend/styles/layout.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@media (--desktop) {
3232
max-width: min(
3333
calc(var(--layout-width-main-col) + var(--max-space-between-cols) + var(--layout-sidebar-width)),
34-
calc(100vw - var(--layout-sidebar-width))
34+
calc(100% - var(--layout-sidebar-width))
3535
);
3636
margin-left: max(var(--main-col-min-margin-left), calc(50vw - var(--layout-sidebar-width) - var(--layout-width-main-col) / 2) - var(--layout-padding-horizontal));
3737
margin-right: auto;

0 commit comments

Comments
 (0)