diff --git a/web/src/lib/components/layouts/user-page-layout.svelte b/web/src/lib/components/layouts/user-page-layout.svelte index 4830905036..8f7212ae20 100644 --- a/web/src/lib/components/layouts/user-page-layout.svelte +++ b/web/src/lib/components/layouts/user-page-layout.svelte @@ -13,6 +13,7 @@ export let admin = false; $: scrollbarClass = scrollbar ? 'immich-scrollbar p-4 pb-8' : 'scrollbar-hidden pl-4'; + $: hasTitleClass = title ? 'top-16 h-[calc(100%-theme(spacing.16))]' : 'top-0 h-full';
@@ -32,20 +33,19 @@ {/if} - - {#if title} -
-
-

{title}

- -
-
- -
-
+
+ {#if title} +
+

{title}

+ +
{/if} - + +
+ +
+
diff --git a/web/src/lib/components/photos-page/asset-grid.svelte b/web/src/lib/components/photos-page/asset-grid.svelte index 0fc2711639..4fab2662a4 100644 --- a/web/src/lib/components/photos-page/asset-grid.svelte +++ b/web/src/lib/components/photos-page/asset-grid.svelte @@ -25,6 +25,7 @@ export let assetStore: AssetStore; export let assetInteractionStore: AssetInteractionStore; export let removeAction: AssetAction | null = null; + $: isTrashEnabled = $featureFlags.loaded && $featureFlags.trash; export let forceDelete = false; diff --git a/web/src/routes/(user)/archive/+page.svelte b/web/src/routes/(user)/archive/+page.svelte index 7fee8c915f..a046ca4ac7 100644 --- a/web/src/routes/(user)/archive/+page.svelte +++ b/web/src/routes/(user)/archive/+page.svelte @@ -45,7 +45,7 @@ {/if} - + {/if} - + - - - {#if $isMultiSelectState} - assetInteractionStore.clearMultiselect()}> - (handleEscapeKey = true)} /> - - - - - - (handleEscapeKey = true)} - onAssetDelete={(assetId) => assetStore.removeAsset(assetId)} - /> - - - - assetStore.removeAssets(ids)} /> - - - +{#if $isMultiSelectState} + assetInteractionStore.clearMultiselect()}> + (handleEscapeKey = true)} /> + + + + + + (handleEscapeKey = true)} + onAssetDelete={(assetId) => assetStore.removeAsset(assetId)} + /> + + + + assetStore.removeAssets(ids)} /> + + + +{/if} + + + + {#if data.user.memoriesEnabled} + {/if} - - - - {#if data.user.memoriesEnabled} - - {/if} - openFileUploadDialog()} - slot="empty" - /> - - + openFileUploadDialog()} + slot="empty" + /> + diff --git a/web/src/routes/(user)/trash/+page.svelte b/web/src/routes/(user)/trash/+page.svelte index 0cb676b5c8..cce5657675 100644 --- a/web/src/routes/(user)/trash/+page.svelte +++ b/web/src/routes/(user)/trash/+page.svelte @@ -70,7 +70,7 @@ {/if} {#if $featureFlags.loaded && $featureFlags.trash} - +
@@ -87,7 +87,7 @@
-

+

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