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:
parent
7eca616874
commit
7de8f2a0fe
BIN
attached_assets/image_1772474438663.png
Normal file
BIN
attached_assets/image_1772474438663.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@ -305,7 +305,7 @@ function NativeAdCard() {
|
|||||||
|
|
||||||
function TopStoriesList({ articles }: { articles: Article[] }) {
|
function TopStoriesList({ articles }: { articles: Article[] }) {
|
||||||
return (
|
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">
|
<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" />
|
<span className="w-1 h-3.5 bg-primary rounded-full" />
|
||||||
Zuletzt hinzugefügt
|
Zuletzt hinzugefügt
|
||||||
@ -323,7 +323,7 @@ function TopStoriesList({ articles }: { articles: Article[] }) {
|
|||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-auto pt-3 border-t border-card-border">
|
<div className="pt-3 border-t border-card-border">
|
||||||
<AdSense
|
<AdSense
|
||||||
slot="3854634730"
|
slot="3854634730"
|
||||||
format="fluid"
|
format="fluid"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user