diff --git a/src/lib/components/QueuePanel.svelte b/src/lib/components/QueuePanel.svelte index dc7c857a3..bb2ae724b 100644 --- a/src/lib/components/QueuePanel.svelte +++ b/src/lib/components/QueuePanel.svelte @@ -58,29 +58,11 @@ - - {#if upcomingTracks.length > 0} -
- - - {#if searchQuery} - - {/if} -
- {/if} - - +
{#if currentTrack} -
+
Now Playing
{currentTrack.title} @@ -92,6 +74,24 @@
{/if} + + {#if upcomingTracks.length > 0} +
+ + + {#if searchQuery} + + {/if} +
+ {/if} + {#if upcomingTracks.length > 0}
@@ -232,7 +232,7 @@ display: flex; align-items: center; gap: 8px; - margin: 12px 16px; + margin-bottom: 16px; padding: 8px 10px; background-color: var(--bg-tertiary); border-radius: 6px; @@ -275,12 +275,36 @@ .content { flex: 1; overflow-y: auto; + overflow-x: hidden; padding: 12px 16px; min-height: 0; + overscroll-behavior: contain; /* Prevent scroll chaining to parent */ + } + + /* Fancy scrollbar */ + .content::-webkit-scrollbar { + width: 8px; + } + + .content::-webkit-scrollbar-track { + background: transparent; + } + + .content::-webkit-scrollbar-thumb { + background: rgba(255, 255, 255, 0.15); + border-radius: 4px; + } + + .content::-webkit-scrollbar-thumb:hover { + background: rgba(255, 255, 255, 0.25); } .section { - margin-bottom: 20px; + margin-bottom: 16px; + } + + .now-playing-section { + flex-shrink: 0; } .next-up-section {