From 2d7fc08a3ee5d61b846c407c91da40d61c123ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20T=C3=A4kker?= Date: Thu, 19 Feb 2026 15:26:58 +0100 Subject: [PATCH] Added RangeSlider for secondsPlayed --- app/components/Player/index.vue | 64 ++++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/app/components/Player/index.vue b/app/components/Player/index.vue index 060b49c..ca91c99 100644 --- a/app/components/Player/index.vue +++ b/app/components/Player/index.vue @@ -17,7 +17,17 @@ onMounted(() => { }) const song = useSong() -const { isPlaying, play, pause, next, prev, shuffle, repeat } = usePlayer() +const { + isPlaying, + play, + pause, + next, + prev, + shuffle, + repeat, + secondsPlayed, + duration, +} = usePlayer() @@ -86,7 +110,8 @@ const { isPlaying, play, pause, next, prev, shuffle, repeat } = usePlayer() .track, .controls, -.misc-btns { +.misc-btns, +.controls { display: flex; width: 100%; gap: 0.5rem; @@ -111,8 +136,21 @@ const { isPlaying, play, pause, next, prev, shuffle, repeat } = usePlayer() } .controls { + flex-direction: column; + gap: 0.8rem; justify-content: center; - gap: 1rem; + align-items: flex-start; + + .btns, + .slider { + display: flex; + justify-content: center; + width: 100%; + } + + .btns { + gap: 1rem; + } span { font-size: 24px;