naslovnice kartic: object-position center 25% na vseh straneh (aktuelles, videos, iskanje, domaca), da glave niso odrezane
This commit is contained in:
@@ -142,9 +142,9 @@ function GalleryHeroCard({ images }: { images: GalleryImage[] }) {
|
||||
}
|
||||
|
||||
function getObjectPosition(coverImage: string | null, focalPoints?: Record<string, { x: number; y: number }>): 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}%`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user