From 62f613bb8bb3408797b1da4fceeb1a81f7a73822 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sat, 31 Aug 2024 11:23:36 +0300 Subject: [PATCH] fix: Smooth scrolling Smooth scrolling wasn't working due to the `scroll-behavior` being under body, not html. This commit moves it to html and makes it in Tailwind CSS format. --- src/app/globals.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 28eb341..0cbb5b5 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -85,12 +85,13 @@ } @layer base { + html { + @apply scroll-smooth; + } * { @apply border-border; } body { @apply bg-background text-foreground; - - scroll-behavior: smooth; } -} +} \ No newline at end of file