diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 2ea5a72..d679d0b 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -383,7 +383,9 @@ function VideoCard({ video }: { video: YtVideo }) { ); } -function MediumCard({ article, focalPoints }: { article: Article; focalPoints?: Record }) { +// compact: kartica ob oglasu je visoka 292 px namesto 399, zato se izvlecek +// omeji na dve vrstici, sicer ga spodaj odreze sredi stavka. +function MediumCard({ article, focalPoints, compact }: { article: Article; focalPoints?: Record; compact?: boolean }) { const isVideo = article.category === "Video"; const objPos = getObjectPosition(article.coverImage, focalPoints); return ( @@ -407,7 +409,7 @@ function MediumCard({ article, focalPoints }: { article: Article; focalPoints?: {timeAgo(new Date(article.publishedAt))}

{article.title}

-

{article.excerpt}

+

{article.excerpt}

{article.views.toLocaleString()} @@ -1083,7 +1085,7 @@ export default function Home() { item.type === "video" && item.video ? : item.article - ? + ? : null )}