Improve ad component to ensure proper display and sizing
Update AdSenseAd component in client/src/components/adsense-ad.tsx to include minWidth and minHeight styles to ensure proper rendering and prevent layout shifts. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 50f1ae50-8e22-495d-bb42-127d908a9bc5 Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
parent
e1314807be
commit
679bee3f45
@ -30,7 +30,9 @@ export default function AdSenseAd({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const adStyle: React.CSSProperties = {
|
const adStyle: React.CSSProperties = {
|
||||||
display: 'block'
|
display: 'block',
|
||||||
|
minWidth: '300px',
|
||||||
|
minHeight: '250px'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (adFormat !== 'auto' && width && height) {
|
if (adFormat !== 'auto' && width && height) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user