Fix full-screen photos in mobile browsers

This commit is contained in:
Mikkel Svartveit 2023-10-26 15:39:23 -07:00 committed by GitHub
parent 12ed3514bd
commit d9248fd6f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ const { photo } = Astro.props;
alt=""
height={2000}
quality="high"
class="object-contain rounded w-auto h-full"
class="object-contain rounded w-auto h-[100svh]"
transition:name={photo.default.src}
/>
</div>