Skip to content

Commit 17d2b89

Browse files
committed
Tweak css to add min height to images in horizontal mobile display
1 parent baa5b7f commit 17d2b89

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

frontend/user/src/lib/components/MainPageSkeleton.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
src={imageData.imageUrl}
7575
alt={imageData.altText}
7676
class:hidden={!imgLoadedMobile}
77-
class="mx-auto max-h-[80svh] object-contain"
77+
class="min-h-120 mx-auto max-h-[80svh] object-contain"
7878
onload={() => (imgLoadedMobile = true)}
7979
/>
8080
<div class="skeleton aspect-square max-h-[50svh] w-full" class:hidden={imgLoadedMobile}></div>

frontend/user/src/routes/[lang]/esculturas/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<div class="lg:hidden">
8080
{#each sculptures as image, i (image.filename)}
8181
<div
82-
class={`${i === 0 ? 'header-screen' : 'h-svh'}`}
82+
class={`${i === 0 ? 'header-screen' : 'h-svh'} min-h-120 py-5`}
8383
style={`background-color: ${image.sculptureData.bgColor};`}
8484
>
8585
<SculptureSkeleton {image} />

frontend/user/src/routes/[lang]/proyectos/+page.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
imageUrl={projects.at(0).thumbnail.imageUrl}
6868
/>
6969

70-
<ul class="header-screen bg-vector-grey snap-y snap-mandatory overflow-y-scroll lg:hidden">
70+
<ul
71+
class="header-screen min-h-120 bg-vector-grey snap-y snap-mandatory overflow-y-scroll lg:hidden"
72+
>
7173
{#each projects as project, i (project.id)}
7274
{#if project.thumbnail}
7375
<li class="flex h-full snap-center items-center justify-center text-white" id={project.id}>

0 commit comments

Comments
 (0)