From b90d7a25de96e8f7d638a5f824f0f7a243e700b5 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Tue, 20 Jun 2023 15:37:08 +0200 Subject: [PATCH] scroll button fix --- app/tournois/page.tsx | 2 +- components/ScrollToTopButton.tsx | 2 +- components/TournamentTable.tsx | 14 +++++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/tournois/page.tsx b/app/tournois/page.tsx index 8d4c38f..03c69d1 100644 --- a/app/tournois/page.tsx +++ b/app/tournois/page.tsx @@ -41,7 +41,7 @@ export default async function Tournaments() {
-
+
diff --git a/components/ScrollToTopButton.tsx b/components/ScrollToTopButton.tsx index 450e79b..6bfd93c 100644 --- a/components/ScrollToTopButton.tsx +++ b/components/ScrollToTopButton.tsx @@ -11,7 +11,7 @@ const ScrollToTopButton = ({ isLgScreen }: { isLgScreen: boolean }) => { const scrollToTopButtonClass = isLgScreen ? "absolute bottom-0 right-3 p-10" - : "sticky top-20"; + : "fixed top-20 right-3"; return (