Fix display issues on news pages and article pages

Correctly displays Facebook Reels by adjusting iframe CSS to respect 9:16 aspect ratio, fixes "Zurück" button text encoding, and ensures news badges are fully visible by adjusting overflow clipping.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 413891e8-d784-4bea-b9f5-91a5a68316b4
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: acf16132-83c0-4f3b-ae14-09484805bc0f
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/413891e8-d784-4bea-b9f5-91a5a68316b4/cftwqyT
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic 2026-02-28 16:51:29 +00:00
parent 000edc48e5
commit 5aea2be41d
3 changed files with 12 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 KiB

View File

@ -128,7 +128,7 @@ export default function ArticlePage() {
<Link href="/">
<Button variant="ghost" size="sm" className="mb-6 gap-2" data-testid="button-back">
<ArrowLeft className="w-4 h-4" />
Zur\u00fcck
Zurück
</Button>
</Link>

View File

@ -24,7 +24,7 @@ export default function CategoryPage() {
<Link href="/">
<Button variant="ghost" size="sm" className="mb-6 gap-2" data-testid="button-back">
<ArrowLeft className="w-4 h-4" />
Zur\u00fcck
Zurück
</Button>
</Link>
@ -53,14 +53,16 @@ export default function CategoryPage() {
className="group cursor-pointer bg-card rounded-md border border-card-border transition-all duration-300"
data-testid={`card-article-${article.id}`}
>
<div className="relative overflow-hidden rounded-t-md">
<div className="relative rounded-t-md">
<div className="overflow-hidden rounded-t-md">
<img
src={article.coverImage || "/images/article-1.png"}
alt={article.title}
className="w-full aspect-video object-cover transition-transform duration-500 group-hover:scale-105"
loading="lazy"
/>
<Badge className="absolute top-3 left-3 text-xs no-default-active-elevate">
</div>
<Badge className="absolute top-3 left-3 text-xs no-default-active-elevate z-10">
{article.category}
</Badge>
</div>