diff --git a/client/src/components/adsense.tsx b/client/src/components/adsense.tsx index 38a9145..ddfa3c1 100644 --- a/client/src/components/adsense.tsx +++ b/client/src/components/adsense.tsx @@ -50,6 +50,9 @@ export default function AdSense({ // Nic se ne odreze - visina je natanko taksna kot oglas. let fitTimers: ReturnType[] = []; const fitToCreative = () => { + // Enota s trdno visino v style (fiksne Display enote) se ne prilagaja + // kreativi, sicer nam Google 300x400 razpotegne na 300x600. + if (style && typeof (style as any).height === "string") return; const f = ins?.querySelector("iframe") as HTMLIFrameElement | null; if (!ins || !f) return; const h = f.getBoundingClientRect().height;