Skip to content

Commit ffaccfb

Browse files
committed
Fix scrolling behavior
1 parent 6f3d8d4 commit ffaccfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/_app.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default function App({ Component, pageProps, router }: AppProps) {
4545
<title>Commit Rocket</title>
4646
</Head>
4747
<GoogleAnalytics />
48-
<div className="flex flex-col overflow-auto font-sans scroll-smooth scroll-p-4">
48+
<div className="flex flex-col font-sans">
4949
<Header />
5050
<AnimatePresence mode="wait">
5151
<motion.div

src/pages/_document.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Html, Head, Main, NextScript } from 'next/document';
22

33
export default function Document() {
44
return (
5-
<Html lang="en">
5+
<Html lang="en" className="overflow-auto scroll-smooth scroll-p-4">
66
<Head>
77
<meta name="description" content="Commit Rocket, the next-gen git client" />
88
<link rel="icon" href="/favicon.ico" />

0 commit comments

Comments
 (0)