diff --git a/client/src/components/adsense.tsx b/client/src/components/adsense.tsx index 29b75a0..38a9145 100644 --- a/client/src/components/adsense.tsx +++ b/client/src/components/adsense.tsx @@ -136,7 +136,7 @@ export default function AdSense({ style={style || { display: "block" }} data-ad-client="ca-pub-4465464714854276" data-ad-slot={slot} - data-ad-format={format} + {...(format ? { "data-ad-format": format } : {})} data-full-width-responsive={responsive ? "true" : "false"} {...(layout ? { "data-ad-layout": layout } : {})} {...(layoutKey ? { "data-ad-layout-key": layoutKey } : {})} @@ -160,13 +160,14 @@ export function ArticleCardAd() { // Vzorec z imeni izvajalcev je bil pod oglasom viden kot prazna grafika, // ker je fluid enota nizja od celice. Zdaj je okvir samo okoli oglasa in // se skrci na njegovo visino. -