Ensure ads properly fill available space in the content grid
Adjust ad components to fill vertical space, preventing empty gaps below them in the grid layout. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 4400694b-0a33-4db8-aef6-2acb356cdf9b 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
9ebb74eb9b
commit
ba4d22c513
BIN
attached_assets/image_1772472919348.png
Normal file
BIN
attached_assets/image_1772472919348.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 247 KiB |
@ -79,12 +79,12 @@ export default function AdSense({
|
|||||||
|
|
||||||
export function ArticleCardAd() {
|
export function ArticleCardAd() {
|
||||||
return (
|
return (
|
||||||
<div className="bg-card rounded-md border border-card-border overflow-hidden">
|
<div className="bg-card rounded-md border border-card-border overflow-hidden h-full min-h-[200px] flex flex-col">
|
||||||
<AdSense
|
<AdSense
|
||||||
slot="3854634730"
|
slot="3854634730"
|
||||||
format="fluid"
|
format="fluid"
|
||||||
layoutKey="-6r+cy-10+8a-3"
|
layoutKey="-6r+cy-10+8a-3"
|
||||||
style={{ display: "block" }}
|
style={{ display: "block", flex: "1" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -595,7 +595,7 @@ export default function Home() {
|
|||||||
item.type === "widget"
|
item.type === "widget"
|
||||||
? <div key={item.key}>{item.widget!.el}</div>
|
? <div key={item.key}>{item.widget!.el}</div>
|
||||||
: item.type === "ad"
|
: item.type === "ad"
|
||||||
? <div key={item.key} data-testid={`ad-grid-${item.key}`}><ArticleCardAd /></div>
|
? <div key={item.key} className="h-full" data-testid={`ad-grid-${item.key}`}><ArticleCardAd /></div>
|
||||||
: item.article
|
: item.article
|
||||||
? <MediumCard key={item.key} article={item.article} focalPoints={focalPoints} />
|
? <MediumCard key={item.key} article={item.article} focalPoints={focalPoints} />
|
||||||
: null
|
: null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user