Skip to content

Commit

Permalink
feat(scroll): set default scrollBehavior to smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
chornos13 committed Jan 31, 2021
1 parent d9eadd7 commit 804e776
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ class MyDocument extends Document {
}

render() {
// noinspection HtmlRequiredTitleElement
return (
<Html
style={{
height: '100%',
scrollBehavior: 'smooth',
}}
>
<Head />
Expand Down

0 comments on commit 804e776

Please sign in to comment.