From 1f1a4ab1a3b7adc95893e2f806a9ccc10d9d6a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90=E1=BB=A9c?= Date: Thu, 14 Nov 2024 22:00:18 +0700 Subject: [PATCH] fix(web): textarea autogrow height (#13983) fix(web): remove album assetGridWidth & globalWidth Co-authored-by: Alex Tran --- .../[[photos=photos]]/[[assetId=id]]/+page.svelte | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte index 2a78b02aa66ee..5b23cd0c2176e 100644 --- a/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -104,8 +104,6 @@ let isShowActivity = $state(false); let isLiked: ActivityResponseDto | null = $state(null); let reactions: ActivityResponseDto[] = $state([]); - let globalWidth: number = $state(0); - let assetGridWidth: number = $derived(isShowActivity ? globalWidth - (globalWidth < 768 ? 360 : 460) : globalWidth); let albumOrder: AssetOrder | undefined = $state(data.album.order); const assetInteractionStore = createAssetInteractionStore(); @@ -430,7 +428,7 @@ }); -
+
{#if $isMultiSelectState} assetInteractionStore.clearMultiselect()}> @@ -568,10 +566,7 @@ {/if} {/if} -
+
{#key albumKey} {#if viewMode === AlbumPageViewMode.SELECT_ASSETS}