From 5dc59b591d6f9428665c8654064ada09e1fb1daf Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:07:20 +0100 Subject: [PATCH] refactor(web): albums list (2) (#8214) * refactor: albums list * fix: responsive design * keep albums in sharing --- .../album-page/albums-controls.svelte | 14 +++-- .../components/album-page/albums-list.svelte | 52 ++++++++++++++++--- .../components/album-page/albums-table.svelte | 27 +++++----- .../lib/components/elements/group-tab.svelte | 20 +++++++ web/src/lib/stores/preferences.store.ts | 8 +++ web/src/routes/(user)/albums/+page.svelte | 2 +- web/src/routes/(user)/albums/+page.ts | 2 + 7 files changed, 102 insertions(+), 23 deletions(-) create mode 100644 web/src/lib/components/elements/group-tab.svelte diff --git a/web/src/lib/components/album-page/albums-controls.svelte b/web/src/lib/components/album-page/albums-controls.svelte index a58dbc0e3e..b391b061df 100644 --- a/web/src/lib/components/album-page/albums-controls.svelte +++ b/web/src/lib/components/album-page/albums-controls.svelte @@ -2,7 +2,7 @@ import LinkButton from '$lib/components/elements/buttons/link-button.svelte'; import Dropdown from '$lib/components/elements/dropdown.svelte'; import Icon from '$lib/components/elements/icon.svelte'; - import { AlbumViewMode, albumViewSettings } from '$lib/stores/preferences.store'; + import { AlbumFilter, AlbumViewMode, albumViewSettings } from '$lib/stores/preferences.store'; import { mdiArrowDownThin, mdiArrowUpThin, @@ -12,6 +12,7 @@ } from '@mdi/js'; import { sortByOptions, type Sort, handleCreateAlbum } from '$lib/components/album-page/albums-list.svelte'; import SearchBar from '$lib/components/elements/search-bar.svelte'; + import GroupTab from '$lib/components/elements/group-tab.svelte'; export let searchAlbum: string; @@ -25,13 +26,20 @@ }; -