Skip to content

Commit

Permalink
fix: fix horizontal viewport to prevent horizontal scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
loganprit committed Oct 30, 2024
1 parent 37bd35a commit 235701b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/sass/base/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ html, body {

#wrapper {
height: 100vh;
width: 100vw;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) transparent;

Expand Down
5 changes: 5 additions & 0 deletions assets/sass/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
border-top-width: _size(border-width);
border-bottom-width: _size(border-width);
max-width: 100%;
overflow-y: auto;
overflow-x: hidden;
scrollbar-gutter: stable;
max-height: 80vh;
scroll-behavior: smooth;

// Add scrollbar styles
overflow-y: auto;
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/layout/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
position: relative;
width: 40rem;
max-width: 100%;
overflow-x: hidden;
background-color: transparentize(_palette(bg), 0.15);
border-radius: _size(border-radius);
opacity: 0;


&.active {
@include vendor('transform', 'translateY(0)');
opacity: 1;
Expand Down

0 comments on commit 235701b

Please sign in to comment.