Add a sixth story to the top stories list
Update the home page to display 6 articles in the Top Stories section instead of 5. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 530e1445-321d-4445-944c-16bebe18c62c 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:
parent
5afac30d5a
commit
fa4bbe314f
BIN
attached_assets/image_1772312715843.png
Normal file
BIN
attached_assets/image_1772312715843.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@ -226,7 +226,7 @@ function TopStoriesList({ articles }: { articles: Article[] }) {
|
||||
Top-Storys
|
||||
</h3>
|
||||
<div className="space-y-0">
|
||||
{articles.slice(0, 5).map((article) => (
|
||||
{articles.slice(0, 6).map((article) => (
|
||||
<Link key={article.id} href={`/article/${article.slug}`}>
|
||||
<div className="group cursor-pointer py-1.5 border-b border-card-border last:border-0" data-testid={`card-top-${article.id}`}>
|
||||
<h4 className="text-xs font-medium text-card-foreground line-clamp-2 group-hover:text-primary transition-colors leading-snug">{article.title}</h4>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user