diff --git a/client/src/pages/aktuelles.tsx b/client/src/pages/aktuelles.tsx index 9516888..6df1463 100644 --- a/client/src/pages/aktuelles.tsx +++ b/client/src/pages/aktuelles.tsx @@ -142,7 +142,7 @@ export default function AktuellesPage() { src={a.coverImage} alt={a.title} loading="lazy" - className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105" + style={{ objectPosition: "center 25%" }} className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105" /> )} diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index d41d5d1..fcaa75b 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -142,9 +142,9 @@ function GalleryHeroCard({ images }: { images: GalleryImage[] }) { } function getObjectPosition(coverImage: string | null, focalPoints?: Record): string { - if (!coverImage || !focalPoints) return "center 20%"; + if (!coverImage || !focalPoints) return "center 25%"; const fp = focalPoints[coverImage]; - if (!fp) return "center 20%"; + if (!fp) return "center 25%"; return `${fp.x}% ${fp.y}%`; } diff --git a/client/src/pages/search.tsx b/client/src/pages/search.tsx index 8d81b16..5aca8b5 100644 --- a/client/src/pages/search.tsx +++ b/client/src/pages/search.tsx @@ -130,7 +130,7 @@ export default function SearchPage() { {article.title} )}
@@ -165,7 +165,7 @@ export default function SearchPage() { {video.title}
diff --git a/client/src/pages/videos.tsx b/client/src/pages/videos.tsx index 93e4e75..90f48fb 100644 --- a/client/src/pages/videos.tsx +++ b/client/src/pages/videos.tsx @@ -36,7 +36,7 @@ function VideoCard({ article }: { article: Article }) { {article.title}