1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): show memory in main timeline (#2775)

This commit is contained in:
Alex 2023-06-15 14:11:14 -05:00 committed by GitHub
parent a59e9e1d9e
commit 77fe2e55be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,7 @@
export let user: UserResponseDto | undefined = undefined; export let user: UserResponseDto | undefined = undefined;
export let isAlbumSelectionMode = false; export let isAlbumSelectionMode = false;
export let showMemoryLane = false;
let viewportHeight = 0; let viewportHeight = 0;
let viewportWidth = 0; let viewportWidth = 0;
@ -131,7 +132,9 @@
on:scroll={handleTimelineScroll} on:scroll={handleTimelineScroll}
> >
{#if assetGridElement} {#if assetGridElement}
<MemoryLane /> {#if showMemoryLane}
<MemoryLane />
{/if}
<section id="virtual-timeline" style:height={$assetGridState.timelineHeight + 'px'}> <section id="virtual-timeline" style:height={$assetGridState.timelineHeight + 'px'}>
{#each $assetGridState.buckets as bucket, bucketIndex (bucketIndex)} {#each $assetGridState.buckets as bucket, bucketIndex (bucketIndex)}
<IntersectionObserver <IntersectionObserver

View File

@ -53,5 +53,5 @@
{/if} {/if}
</svelte:fragment> </svelte:fragment>
<AssetGrid slot="content" /> <AssetGrid slot="content" showMemoryLane />
</UserPageLayout> </UserPageLayout>