From c06b0126b17f65ffa4758c10fe624932fb9a7ddd Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Sat, 7 Jun 2025 21:07:32 +0330 Subject: [PATCH] new changes --- frontend/assets/css/tailwind.css | 4 ++-- frontend/plugins/scrollToTop.client.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/assets/css/tailwind.css b/frontend/assets/css/tailwind.css index 5696404..e1f23fb 100644 --- a/frontend/assets/css/tailwind.css +++ b/frontend/assets/css/tailwind.css @@ -273,9 +273,9 @@ /* CONTAINER */ -* { +/* * { scroll-behavior: smooth !important; -} +} */ @utility container { @apply mx-auto px-[var(--app-container-padding)] w-full max-sm:max-w-[var(--breakpoint-xs)] max-md:max-w-[var(--breakpoint-sm)] max-lg:max-w-[var(--breakpoint-md)] max-xl:max-w-[var(--breakpoint-lg)] max-w-[var(--breakpoint-2xl)]; diff --git a/frontend/plugins/scrollToTop.client.ts b/frontend/plugins/scrollToTop.client.ts index 7b4587f..db662ce 100644 --- a/frontend/plugins/scrollToTop.client.ts +++ b/frontend/plugins/scrollToTop.client.ts @@ -3,7 +3,7 @@ export default defineNuxtPlugin((nuxtApp) => { let isFirstLoad = true; nuxtApp.hook("page:finish", () => { - const currentPath = useRoute().fullPath; + const { fullPath: currentPath } = useRoute(); if (isFirstLoad) { previousPath = currentPath;