Skip to content

Commit

Permalink
chore(web): shared links style tweaks (#15960)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored Feb 8, 2025
1 parent 758449e commit fb21950
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions web/src/lib/components/album-page/user-selection-modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,18 @@
<hr class="my-4" />

<Stack gap={6}>
<div class="flex justify-between items-center">
<Text>{$t('shared_links')}</Text>
<Link href={AppRoute.SHARED_LINKS} class="text-sm">{$t('view_all')}</Link>
</div>
{#if sharedLinks.length > 0}
<div class="flex justify-between items-center">
<Text>{$t('shared_links')}</Text>
<Link href={AppRoute.SHARED_LINKS} class="text-sm">{$t('view_all')}</Link>
</div>

<Stack gap={4}>
{#each sharedLinks as sharedLink}
<AlbumSharedLink {album} {sharedLink} />
{/each}
</Stack>
<Stack gap={4}>
{#each sharedLinks as sharedLink}
<AlbumSharedLink {album} {sharedLink} />
{/each}
</Stack>
{/if}

<Button leadingIcon={mdiLink} size="small" shape="round" fullWidth onclick={onShare}>{$t('create_link')}</Button>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/(user)/shared-links/[[id=id]]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</div>
{/snippet}

<div>
<div class="w-full max-w-3xl m-auto">
{#if sharedLinks.length === 0}
<div
class="flex place-content-center place-items-center rounded-lg bg-gray-100 dark:bg-immich-dark-gray dark:text-immich-gray p-12"
Expand Down

0 comments on commit fb21950

Please sign in to comment.