fix(web): grid on people page (#5640)

* fix: grid on people page

* pr feedback

* wait before width is set

* fix: animation

* fix: use grid instead

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
martin 2024-01-09 04:04:38 +01:00 committed by GitHub
parent bf8e2966c4
commit 29b204de57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 40 deletions

View file

@ -46,7 +46,7 @@
role="group"
>
<a href="{AppRoute.PEOPLE}/{person.id}?previousRoute={AppRoute.PEOPLE}" draggable="false">
<div class="h-48 w-48 rounded-xl brightness-95 filter">
<div class="w-full h-full rounded-xl brightness-95 filter">
<ImageThumbnail
shadow
{preload}

View file

@ -16,10 +16,11 @@
export let showLoadingSpinner: boolean;
export let toggleVisibility: boolean;
export let screenHeight: number;
</script>
<section
transition:fly={{ y: 500, duration: 100, easing: quintOut }}
transition:fly={{ y: screenHeight, duration: 150, easing: quintOut, opacity: 1 }}
class="absolute left-0 top-0 z-[9999] h-full w-full bg-immich-bg dark:bg-immich-dark-bg"
>
<div