0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05:00

feat(web): allow horizontal scrolling in memory lane (#16647)

This commit is contained in:
Lukas 2025-03-06 15:37:11 +01:00 committed by GitHub
parent d84009648e
commit 2875303b4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,8 @@
<section
id="memory-lane"
bind:this={memoryLaneElement}
class="relative mt-5 overflow-hidden whitespace-nowrap transition-all"
class="relative mt-5 overflow-x-scroll overflow-y-hidden whitespace-nowrap transition-all"
style="scrollbar-width:none"
use:resizeObserver={({ width }) => (offsetWidth = width)}
onscroll={onScroll}
>
@ -72,7 +73,7 @@
{#each $memoryStore as memory (memory.id)}
{#if memory.assets.length > 0}
<a
class="memory-card relative mr-8 inline-block aspect-[3/4] md:aspect-video h-[215px] rounded-xl"
class="memory-card relative mr-8 inline-block aspect-[3/4] md:aspect-[4/3] h-[215px] rounded-xl"
href="{AppRoute.MEMORY}?{QueryParameter.ID}={memory.assets[0].id}"
>
<img