From c0fdfbc6a646f7b6cee0040950eb57265fe43020 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Thu, 29 Jan 2026 20:15:51 -0600 Subject: [PATCH] fix(ui): fix double scrollbar in Favorites tracks tab, replace Play All with circle buttons --- src/lib/components/views/FavoritesView.svelte | 126 +++++++++++++++--- 1 file changed, 106 insertions(+), 20 deletions(-) diff --git a/src/lib/components/views/FavoritesView.svelte b/src/lib/components/views/FavoritesView.svelte index f3cd10093..cee664ff7 100644 --- a/src/lib/components/views/FavoritesView.svelte +++ b/src/lib/components/views/FavoritesView.svelte @@ -1,7 +1,7 @@ -
+
0} bind:this={scrollContainer}>
{#if activeTab === 'tracks' && filteredTracks.length > 0}
- + +
+ + {#if showTracksContextMenu} +
showTracksContextMenu = false} role="presentation">
+
+ + +
+ {/if} +
{/if} @@ -1626,6 +1686,10 @@ background: var(--text-muted); } + .favorites-view.no-outer-scroll { + overflow: hidden; + } + .header { display: flex; align-items: center; @@ -1972,23 +2036,45 @@ gap: 12px; } - .play-btn { - display: flex; - align-items: center; - gap: 8px; - padding: 10px 24px; - background-color: var(--accent-primary); - color: white; - border: none; - border-radius: 8px; - font-size: 14px; - font-weight: 500; - cursor: pointer; - transition: background-color 150ms ease; + .context-menu-wrapper { + position: relative; } - .play-btn:hover { - background-color: var(--accent-hover); + .context-menu-backdrop { + position: fixed; + inset: 0; + z-index: 99; + } + + .context-menu { + position: absolute; + top: 100%; + right: 0; + margin-top: 8px; + min-width: 160px; + background-color: var(--bg-tertiary); + border-radius: 8px; + padding: 2px 0; + z-index: 100; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); + } + + .context-menu-item { + display: block; + width: 100%; + padding: 8px 12px; + background: none; + border: none; + text-align: left; + font-size: 12px; + color: var(--text-secondary); + cursor: pointer; + transition: background-color 150ms ease, color 150ms ease; + } + + .context-menu-item:hover { + background-color: var(--bg-hover); + color: var(--text-primary); }