refactor(web): remove resize observer action (#26647)

This commit is contained in:
Michel Heusschen
2026-03-02 15:45:34 +01:00
committed by GitHub
parent 7f47cdd645
commit dffe4d1d5c
3 changed files with 3 additions and 49 deletions
@@ -1,7 +1,6 @@
<script lang="ts">
import { afterNavigate, goto } from '$app/navigation';
import { page } from '$app/state';
import { resizeObserver } from '$lib/actions/resize-observer';
import { shortcuts } from '$lib/actions/shortcut';
import MemoryPhotoViewer from '$lib/components/memory-page/memory-photo-viewer.svelte';
import MemoryVideoViewer from '$lib/components/memory-page/memory-video-viewer.svelte';
@@ -378,7 +377,8 @@
id="memory-viewer"
class="w-full bg-immich-dark-gray"
bind:this={memoryWrapper}
use:resizeObserver={({ height, width }) => ((viewport.height = height), (viewport.width = width))}
bind:clientHeight={viewport.height}
bind:clientWidth={viewport.width}
>
{#if current}
<ControlAppBar onClose={() => goto(Route.photos())} forceDark multiRow>