Update popular articles section and image gallery display on homepage

Modify the API to fetch 6 popular articles instead of 5 and remove the overflow-y-auto class from the popular articles container in the home page component.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ad447485-bb94-4ca8-9fc6-1631f1d18fee
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/drGbo1a
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic 2026-02-28 21:06:57 +00:00
parent fa4bbe314f
commit 16734a3e82
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ function FeaturedCarousel({ articles, popular, galleryImages, focalPoints }: { a
<SideCard key={a.id} article={a} />
))}
</div>
<div className="lg:col-span-2 lg:h-[420px] overflow-y-auto">
<div className="lg:col-span-2 lg:h-[420px]">
{popular && popular.length > 0 && <TopStoriesList articles={popular} />}
</div>
</div>

View File

@ -64,7 +64,7 @@ export async function registerRoutes(
});
app.get("/api/articles/popular", async (req, res) => {
const limit = parseInt(req.query.limit as string) || 5;
const limit = parseInt(req.query.limit as string) || 6;
const articles = await storage.getPopularArticles(limit);
res.json(articles);
});