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

fix(default-theme): changed default scroll behavior #1026

Merged
merged 2 commits into from
Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }
}
}
3 changes: 2 additions & 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,7 @@ h5 {
}

body {
overflow-x: hidden;
// overflow-x: hidden;
patzick marked this conversation as resolved.
Show resolved Hide resolved
padding: 0;
margin: 0;
min-height: 100vh;
Expand Down