From 30cb723247de70ddefe893a27d6d6143a570d9dd Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 20:56:39 +0000 Subject: [PATCH] Improve image display and layout for a better viewing experience Adjusted image rendering and container sizes to optimize the display of landscape and portrait images across the featured section, ensuring content remains visually balanced and readable. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 9b201064-26d8-4881-ae57-42f081461269 Replit-Helium-Checkpoint-Created: true --- client/src/pages/home.tsx | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 4aee36c..14aa546 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -163,9 +163,9 @@ function SideCard({ article }: { article: Article }) { return (
-
-
- {article.title} +
+
+ {article.title}
{isVideo && (
@@ -175,13 +175,12 @@ function SideCard({ article }: { article: Article }) {
)}
-
-
+
+
{article.author} {timeAgo(new Date(article.publishedAt))}
-

{article.title}

-

{article.excerpt}

+

{article.title}

@@ -267,22 +266,20 @@ function FeaturedCarousel({ articles, popular, galleryImages }: { articles: Arti return (
setPaused(true)} onMouseLeave={() => setPaused(false)}> -
-
-
- {isGalleryPage && galleryImages ? ( - - ) : hero ? ( - - ) : null} -
+
+
+ {isGalleryPage && galleryImages ? ( + + ) : hero ? ( + + ) : null}
-
+
{side.map((a) => ( ))}
-
+
{popular && popular.length > 0 && }