From b7e5407822ee0b61844e656298440e91d0c5bd01 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Tue, 12 Mar 2024 02:18:47 +0100 Subject: [PATCH] fix(web): small fixes for empty placeholder (#7859) --- .../empty-placeholder.svelte | 26 ++++++++----------- web/src/routes/(user)/albums/+page.svelte | 6 +---- web/src/routes/(user)/archive/+page.svelte | 6 +---- web/src/routes/(user)/favorites/+page.svelte | 6 +---- web/src/routes/(user)/photos/+page.svelte | 6 +---- web/src/routes/(user)/sharing/+page.svelte | 1 - web/src/routes/(user)/trash/+page.svelte | 7 +---- .../admin/library-management/+page.svelte | 3 +-- web/src/routes/admin/repair/+page.svelte | 7 +---- 9 files changed, 18 insertions(+), 50 deletions(-) diff --git a/web/src/lib/components/shared-components/empty-placeholder.svelte b/web/src/lib/components/shared-components/empty-placeholder.svelte index fc234aa4da..781f7821f1 100644 --- a/web/src/lib/components/shared-components/empty-placeholder.svelte +++ b/web/src/lib/components/shared-components/empty-placeholder.svelte @@ -1,28 +1,24 @@ -
- -

{text}

-
+ +

{text}

+ diff --git a/web/src/routes/(user)/albums/+page.svelte b/web/src/routes/(user)/albums/+page.svelte index d14be267e2..c8d591f916 100644 --- a/web/src/routes/(user)/albums/+page.svelte +++ b/web/src/routes/(user)/albums/+page.svelte @@ -375,11 +375,7 @@ {:else} - + {/if} diff --git a/web/src/routes/(user)/archive/+page.svelte b/web/src/routes/(user)/archive/+page.svelte index 2278353547..93dc09a508 100644 --- a/web/src/routes/(user)/archive/+page.svelte +++ b/web/src/routes/(user)/archive/+page.svelte @@ -45,10 +45,6 @@ - + diff --git a/web/src/routes/(user)/favorites/+page.svelte b/web/src/routes/(user)/favorites/+page.svelte index 21b563a50d..067859b690 100644 --- a/web/src/routes/(user)/favorites/+page.svelte +++ b/web/src/routes/(user)/favorites/+page.svelte @@ -50,10 +50,6 @@ - + diff --git a/web/src/routes/(user)/photos/+page.svelte b/web/src/routes/(user)/photos/+page.svelte index df2328aaa7..9e80c71e00 100644 --- a/web/src/routes/(user)/photos/+page.svelte +++ b/web/src/routes/(user)/photos/+page.svelte @@ -88,10 +88,6 @@ {#if $user.memoriesEnabled} {/if} - openFileUploadDialog()} - slot="empty" - /> + openFileUploadDialog()} slot="empty" /> diff --git a/web/src/routes/(user)/sharing/+page.svelte b/web/src/routes/(user)/sharing/+page.svelte index b50cb5089b..2d6e5b5325 100644 --- a/web/src/routes/(user)/sharing/+page.svelte +++ b/web/src/routes/(user)/sharing/+page.svelte @@ -92,7 +92,6 @@ {#if data.sharedAlbums.length === 0} {/if} diff --git a/web/src/routes/(user)/trash/+page.svelte b/web/src/routes/(user)/trash/+page.svelte index 6ce6c54236..fd176b7a1c 100644 --- a/web/src/routes/(user)/trash/+page.svelte +++ b/web/src/routes/(user)/trash/+page.svelte @@ -91,12 +91,7 @@

Trashed items will be permanently deleted after {$serverConfig.trashDays} days.

- + {/if} diff --git a/web/src/routes/admin/library-management/+page.svelte b/web/src/routes/admin/library-management/+page.svelte index ea681acc06..e6f4332ee7 100644 --- a/web/src/routes/admin/library-management/+page.svelte +++ b/web/src/routes/admin/library-management/+page.svelte @@ -462,8 +462,7 @@ {:else} (toCreateLibrary = true)} - alt="Empty albums" + onClick={() => (toCreateLibrary = true)} /> {/if} diff --git a/web/src/routes/admin/repair/+page.svelte b/web/src/routes/admin/repair/+page.svelte index 939e151f5d..fa0f66ec3e 100644 --- a/web/src/routes/admin/repair/+page.svelte +++ b/web/src/routes/admin/repair/+page.svelte @@ -203,12 +203,7 @@
{#if matches.length + extras.length + orphans.length === 0}
- +
{:else}