Skip to content

Commit

Permalink
fix(web): textarea autogrow height (#13983)
Browse files Browse the repository at this point in the history
fix(web): remove album assetGridWidth & globalWidth

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
  • Loading branch information
duckimann and alextran1502 authored Nov 14, 2024
1 parent 0b3742c commit 1f1a4ab
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -430,7 +428,7 @@
});
</script>

<div class="flex overflow-hidden" bind:clientWidth={globalWidth}>
<div class="flex overflow-hidden">
<div class="relative w-full shrink">
{#if $isMultiSelectState}
<AssetSelectControlBar assets={$selectedAssets} clearSelect={() => assetInteractionStore.clearMultiselect()}>
Expand Down Expand Up @@ -568,10 +566,7 @@
{/if}
{/if}

<main
class="relative h-screen overflow-hidden bg-immich-bg px-6 pt-[var(--navbar-height)] dark:bg-immich-dark-bg"
style={`width:${assetGridWidth}px`}
>
<main class="relative h-screen overflow-hidden bg-immich-bg px-6 pt-[var(--navbar-height)] dark:bg-immich-dark-bg">
<!-- Use key because AssetGrid can't deal with changing stores -->
{#key albumKey}
{#if viewMode === AlbumPageViewMode.SELECT_ASSETS}
Expand Down

0 comments on commit 1f1a4ab

Please sign in to comment.