fix(web): memory viewer (#12649)

refactor(web): memory viewer
This commit is contained in:
Jason Rasmussen 2024-09-13 12:27:10 -04:00 committed by GitHub
parent cdbc673a59
commit a373d50c31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 242 additions and 180 deletions

View file

@ -69,11 +69,11 @@
</div>
{/if}
<div class="inline-block" use:resizeObserver={({ width }) => (innerWidth = width)}>
{#each $memoryStore as memory, index (memory.yearsAgo)}
{#each $memoryStore as memory (memory.yearsAgo)}
{#if memory.assets.length > 0}
<a
class="memory-card relative mr-8 inline-block aspect-video h-[215px] rounded-xl"
href="{AppRoute.MEMORY}?{QueryParameter.MEMORY_INDEX}={index}"
href="{AppRoute.MEMORY}?{QueryParameter.ID}={memory.assets[0].id}"
>
<img
class="h-full w-full rounded-xl object-cover"