From 13585060a6d530bdd1e243c8490be948136982d5 Mon Sep 17 00:00:00 2001 From: 5-23 Date: Mon, 13 May 2024 22:18:09 +0900 Subject: [PATCH] fix: height bug --- src/App.jsx | 4 ++-- src/styles.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index f2d94ef..33430c6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -56,7 +56,7 @@ function App() { let overPlay = progress.current.value - audioContainer.current.currentTime / audioContainer.current.duration * 1000; if (String(overPlay) == "NaN") overPlay = 0 - if (await appWindow.isFocused() && (overPlay > 7 || overPlay < -7)) { + if (await appWindow.isFocused() && (overPlay > 10 || overPlay < -10)) { audioContainer.current.currentTime = progress.current.value / 1000 * audioContainer.current.duration }else { if (audioContainer.current.paused || String(audioContainer.current.duration) == "NaN") {return} @@ -66,7 +66,7 @@ function App() { progressPercent = 0 } progress.current.value = progressPercent - if (progressPercent >= 995) { + if (progressPercent >= 990) { console.log(MODE) if (MODE == "normal") musicNext() if (MODE == "shuffle") { diff --git a/src/styles.css b/src/styles.css index 4f10be5..a8af7b7 100644 --- a/src/styles.css +++ b/src/styles.css @@ -72,7 +72,7 @@ b { padding: 12px; min-height: 0; height: fit-content; - max-height: 80vh; + height: 80vh; background-color: var(--black); overflow: scroll; }