perf: fix sizes attribute scaling bug to prevent mobile devices from downloading 1920w desktop images

This commit is contained in:
2026-07-01 18:23:50 +02:00
parent 16d494689f
commit f2e59fa52f
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ export default async function Home(props: { params: Promise<{ locale: string }>
as: 'image',
fetchPriority: 'high',
imageSrcSet: '/assets/videos/web/hero-kabelpflug-poster-mobile.webp 800w, /assets/videos/web/hero-kabelpflug-poster.webp 1920w',
imageSizes: '(max-width: 768px) 800px, 1920px'
imageSizes: '100vw'
});
const mdx = await getMdxContent(locale, 'home');