Skip to content

Commit dae5557

Browse files
committed
feat: add scroll-smooth class to HTML and body elements for improved scrolling experience
1 parent 55da9f0 commit dae5557

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const canonicalURL = new URL(Astro.url.pathname, site);
1313
---
1414

1515
<!doctype html>
16-
<html lang="en" data-theme="light">
16+
<html lang="en" data-theme="light" class="scroll-smooth">
1717
<head>
1818
<meta charset="UTF-8" />
1919
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -40,7 +40,7 @@ const canonicalURL = new URL(Astro.url.pathname, site);
4040

4141
<slot name="head" />
4242
</head>
43-
<body class="font-sans antialiased">
43+
<body class="font-sans antialiased scroll-smooth">
4444
<slot />
4545
</body>
4646
</html>

0 commit comments

Comments
 (0)