Adjust "Zuletzt hinzugefügt" widget height to fit content

Remove fixed height from the "Zuletzt hinzugefügt" widget in `home.tsx` to dynamically adjust its size based on content, and also adjust the ad component's margin.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c03c3fad-bd1b-44f8-b763-494d279cf1cf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/nFw7xof
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sebastjanartic 2026-03-02 18:01:25 +00:00
parent 7eca616874
commit 7de8f2a0fe
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -305,7 +305,7 @@ function NativeAdCard() {
function TopStoriesList({ articles }: { articles: Article[] }) {
return (
<div className="bg-card rounded-lg border border-card-border p-3 h-full flex flex-col" data-testid="sidebar-top-stories">
<div className="bg-card rounded-lg border border-card-border p-3" data-testid="sidebar-top-stories">
<h3 className="font-bold text-card-foreground text-xs mb-2 flex items-center gap-2">
<span className="w-1 h-3.5 bg-primary rounded-full" />
Zuletzt hinzugefügt
@ -323,7 +323,7 @@ function TopStoriesList({ articles }: { articles: Article[] }) {
</Link>
))}
</div>
<div className="mt-auto pt-3 border-t border-card-border">
<div className="pt-3 border-t border-card-border">
<AdSense
slot="3854634730"
format="fluid"