Skip to content

Commit 13c01e8

Browse files
committed
Tweak css
1 parent d06dbbb commit 13c01e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/(frontend)/[locale]/projects/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ const Page = async ({ params }: Props) => {
205205
</figcaption>
206206
</figure>
207207
<div
208-
className="flex flex-col justify-evenly gap-y-20 py-20 lg:hidden"
208+
className={`${image.phoneConf.imgAlign === 'overflow' ? '' : 'px-8'} flex flex-col justify-evenly gap-y-20 py-20 lg:hidden`}
209209
style={{ backgroundColor: image.bgColor }}
210210
key={`${img.id}-mobile`}
211211
>
@@ -214,7 +214,7 @@ const Page = async ({ params }: Props) => {
214214
alt={imageFile.alt}
215215
width={imageFile.width!}
216216
height={imageFile.height!}
217-
className="max-w-3/4 mx-auto xl:max-w-full md:h-80 md:w-auto h-full w-auto object-contain"
217+
className="mx-auto xl:max-w-full h-auto object-contain"
218218
sizes="(min-width: 1280px) 60vw, 75vw"
219219
/>
220220

src/components/carousel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export default function Carousel({ projects }: Props) {
139139
className="mx-auto w-fit flex-col items-start transition-transform hover:cursor-pointer flex"
140140
>
141141
<figure
142-
className="h-100 relative overflow-hidden"
143-
style={{ aspectRatio: '0.705' }}
142+
className="min-h-100 relative overflow-hidden"
143+
style={{ aspectRatio: '0.705', height: '50svh' }}
144144
>
145145
<Image
146146
src={thumbnail.url!}

0 commit comments

Comments
 (0)