From c0a941be17066c35634bd252b84771dbb0fc025d Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 17 Nov 2024 13:50:18 -0800 Subject: fix scrolling issue --- src/app/page.tsx | 41 ++++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'src/app/page.tsx') diff --git a/src/app/page.tsx b/src/app/page.tsx index 4212ffa..4ea49f7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -82,17 +82,14 @@ const StyledLink = styled.a` } `; -const StyledButton = styled.button` - padding: 10px 15px; - margin-top: 10px; - border-radius: 5px; - border: 1px solid #ddd; - cursor: pointer; - &:hover, - &:focus { - background-color: #eaeaea; - outline: none; - } +const LRCPlayerWrapper = styled.div` + flex: 1; + display: flex; + flex-direction: column; + height: 100vh; + overflow-y: auto; + scroll-behavior: smooth; + background-color: #ffffff; `; function KaraokePage() { @@ -490,13 +487,15 @@ function KaraokePage() { {/*LRC viewer*/}
- + + + {/* Ternary operation for if videoUrl has been set */}

-
+
@@ -640,9 +639,9 @@ function KaraokePage() { } style={{ width: "100%", fontSize: "16px" }} /> - +
)} -- cgit v1.2.3