Skip to content

Commit 1afe5d4

Browse files
committed
Add missing image dimensions
1 parent b2cdedc commit 1afe5d4

File tree

1 file changed

+3
-0
lines changed
  • src/app/(frontend)/[locale]/projects/[id]

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ const Page = async ({ params }: Props) => {
179179
<Image
180180
src={imageFile.url!}
181181
alt={imageFile.alt}
182+
width={imageFile.width!}
183+
height={imageFile.height!}
182184
sizes={imageFile.width! <= imageFile.height! ? '40vw' : '70vw'}
185+
className="w-auto"
183186
style={{ height: `${image.deskConf.imageSize}svh` }}
184187
placeholder="blur"
185188
blurDataURL={imageFile.sizes!.loading!.url!}

0 commit comments

Comments
 (0)