From fae962d59bcb127d11dad58d8323b8f4579870a5 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Thu, 29 Jan 2026 20:07:39 -0600 Subject: [PATCH] feat(ui): add ViewTransition to LocalLibraryView and all tabs - Outer view slides down on initial mount (200ms, 12px) - Each tab content (albums, artists, tracks) slides up on tab change - Uses {#key activeTab} to re-trigger transition on tab switch - Simple transition without spinner fadeout logic --- src/lib/components/views/LocalLibraryView.svelte | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib/components/views/LocalLibraryView.svelte b/src/lib/components/views/LocalLibraryView.svelte index 047b358a4..7cc8f78b2 100644 --- a/src/lib/components/views/LocalLibraryView.svelte +++ b/src/lib/components/views/LocalLibraryView.svelte @@ -10,6 +10,7 @@ } from 'lucide-svelte'; import FolderSettingsModal from '../FolderSettingsModal.svelte'; import LocalLibraryTagEditorModal from '../LocalLibraryTagEditorModal.svelte'; + import ViewTransition from '../ViewTransition.svelte'; import { t } from '$lib/i18n'; import { downloadSettingsVersion } from '$lib/stores/downloadSettingsStore'; import { showToast } from '$lib/stores/toastStore'; @@ -2575,6 +2576,7 @@ } +
0) || (activeTab === 'artists' && artists.length > 0) || (activeTab === 'tracks' && tracks.length > 0))}> {#if selectedAlbum} {@const albumSections = buildAlbumSections(albumTracks)} @@ -2938,6 +2940,8 @@
{:else if activeTab === 'albums'} + {#key activeTab} + {#if showHiddenAlbums}
@@ -3242,7 +3246,11 @@ {/if} {/if} {/if} + + {/key} {:else if activeTab === 'artists'} + {#key activeTab} + {#if artists.length === 0}
@@ -3357,7 +3365,11 @@
{/if} +
+ {/key} {:else if activeTab === 'tracks'} + {#key activeTab} + {#if tracks.length === 0}
@@ -3465,10 +3477,13 @@ {/if}
{/if} +
+ {/key} {/if} {/if} +
{#if showAlbumEditModal && selectedAlbum}