From c0a941be17066c35634bd252b84771dbb0fc025d Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
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() {
             <ToastContainer />
             {/*LRC viewer*/}
             <div style={{ display: "flex", width: "100%", height: "100vh" }}>
-                <LRCPlayer
-                    lrc={lrcContent}
-                    currentMillisecond={currentMillisecond}
-                    animate={animate}
-                    lrcColor={lrcColor}
-                    fontColor={fontColor}
-                />
+                <LRCPlayerWrapper>
+                    <LRCPlayer
+                        lrc={lrcContent}
+                        currentMillisecond={currentMillisecond}
+                        animate={animate}
+                        lrcColor={lrcColor}
+                        fontColor={fontColor}
+                    />
+                </LRCPlayerWrapper>
 
                 {/* Ternary operation for if videoUrl has been set */}
                 <div
@@ -627,7 +626,7 @@ function KaraokePage() {
                                     Demo{" "}
                                 </StyledLink>
                             </p>
-                            <div style={{ marginTop: "20px", width: "80%" }}>
+                            <div>
                                 <label htmlFor="base64Input">
                                     or enter a PatchworkKaraoke code:
                                 </label>
@@ -640,9 +639,9 @@ function KaraokePage() {
                                     }
                                     style={{ width: "100%", fontSize: "16px" }}
                                 />
-                                <StyledButton onClick={handleKaraokeb64Code}>
+                                <button onClick={handleKaraokeb64Code}>
                                     Load Data
-                                </StyledButton>
+                                </button>
                             </div>
                         </div>
                     )}
-- 
cgit v1.2.3

