Skip to content

Commit

Permalink
fix: Fix page scroll position
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 2, 2024
1 parent f4f13ff commit ff5d65f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/styles/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ body {
box-sizing: border-box;
}

:root {
scroll-padding-top: var(--header-height, 0);
}

.g-root {
--dc-header-height: 0;
--dc-subheader-height: 40px;
Expand Down

0 comments on commit ff5d65f

Please sign in to comment.