Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
fix(default-theme): changed default scroll behavior (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malwurf authored Aug 18, 2020
1 parent d16049e commit 4968cb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/default-theme/app/router.scrollBehavior.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function (to, from, savedPosition) {
if (savedPosition) {
return savedPosition
} else {
return { x: 0, y: 0 }
}
}
2 changes: 1 addition & 1 deletion packages/default-theme/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
html {
overflow-x: hidden;
height: 100vh;
overflow: auto;
}

a {
Expand Down Expand Up @@ -58,7 +59,6 @@ h5 {
}

body {
overflow-x: hidden;
padding: 0;
margin: 0;
min-height: 100vh;
Expand Down

1 comment on commit 4968cb8

@vercel
Copy link

@vercel vercel bot commented on 4968cb8 Aug 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.