From fb21950ad8a05cf700568fd7ea76bfeb481886ef Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Feb 2025 19:53:12 -0600 Subject: [PATCH] chore(web): shared links style tweaks (#15960) --- .../album-page/user-selection-modal.svelte | 20 ++++++++++--------- .../shared-links/[[id=id]]/+page.svelte | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/web/src/lib/components/album-page/user-selection-modal.svelte b/web/src/lib/components/album-page/user-selection-modal.svelte index 96e3a1672e..acbced70a0 100644 --- a/web/src/lib/components/album-page/user-selection-modal.svelte +++ b/web/src/lib/components/album-page/user-selection-modal.svelte @@ -154,16 +154,18 @@
-
- {$t('shared_links')} - {$t('view_all')} -
+ {#if sharedLinks.length > 0} +
+ {$t('shared_links')} + {$t('view_all')} +
- - {#each sharedLinks as sharedLink} - - {/each} - + + {#each sharedLinks as sharedLink} + + {/each} + + {/if}
diff --git a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte index 49f9f32b5b..6fd1f17ecc 100644 --- a/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte +++ b/web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte @@ -97,7 +97,7 @@ {/snippet} -
+
{#if sharedLinks.length === 0}