fix(web): improve memories layout on small screens ()

* fix(web): improve memories layout on small screens

* decrease viewer height
This commit is contained in:
Lukas 2025-02-19 00:40:52 +01:00 committed by GitHub
parent 7bf142dc43
commit b13a98646f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions
web/src/lib/components/memory-page

View file

@ -264,7 +264,7 @@
<section id="memory-viewer" class="w-full bg-immich-dark-gray" bind:this={memoryWrapper}>
{#if current && current.memory.assets.length > 0}
<ControlAppBar onClose={() => goto(AppRoute.PHOTOS)} forceDark>
<ControlAppBar onClose={() => goto(AppRoute.PHOTOS)} forceDark multiRow>
{#snippet leading()}
{#if current}
<p class="text-lg">
@ -320,9 +320,9 @@
</div>
{/if}
<!-- Viewer -->
<section class="overflow-hidden pt-20">
<section class="overflow-hidden pt-32 md:pt-20">
<div
class="ml-[-100%] box-border flex h-[calc(100vh_-_180px)] w-[300%] items-center justify-center gap-10 overflow-hidden"
class="ml-[-100%] box-border flex h-[calc(100vh_-_224px)] md:h-[calc(100vh_-_180px)] w-[300%] items-center justify-center gap-10 overflow-hidden"
>
<!-- PREVIOUS MEMORY -->
<div class="h-1/2 w-[20vw] rounded-2xl {current.previousMemory ? 'opacity-25 hover:opacity-70' : 'opacity-0'}">