Skip to content

Commit

Permalink
Add the reset.scss file to prevent layout shift when switching betw…
Browse files Browse the repository at this point in the history
…een pages
  • Loading branch information
LSViana committed Oct 23, 2023
1 parent 0cee723 commit d8d9def
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v3/assets/styles/app.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import 'fonts';
@import 'reset';
@import 'fonts';
4 changes: 4 additions & 0 deletions v3/assets/styles/reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
// This prevents layout shift when switching between pages with/without need for a scrollbar.
@apply overflow-y-scroll;
}

0 comments on commit d8d9def

Please sign in to comment.