From b3d5fe05e44bc6dc1886ce2bbd5bf5c3717eeafe Mon Sep 17 00:00:00 2001 From: sebastjan Date: Mon, 31 Aug 2026 18:39:27 +0200 Subject: [PATCH] zacasno umaknjen prevelik oglas iz mreze na naslovnici in v rubrikah, dokler enota v AdSense ni Fest 300x250 --- client/src/pages/category.tsx | 6 +++--- client/src/pages/home.tsx | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/client/src/pages/category.tsx b/client/src/pages/category.tsx index 9f4cf21..ff62765 100644 --- a/client/src/pages/category.tsx +++ b/client/src/pages/category.tsx @@ -168,9 +168,9 @@ export default function CategoryPage({ fixedCategory }: { fixedCategory?: string // vrhu takoj dobil se en oglas in sele nato prvi clanek. const adCol = row === 0 ? 3 : row % 4; for (let col = 0; col < 4; col++) { - if (col === adCol) { - items.push(
); - } else if (ai < articles.length) { + // Oglas je zacasno umaknjen iz mreze: enota se v celici + // 300 px izrise kot 548 px in razteguje vrstico. + if (ai < articles.length) { const a = articles[ai]; items.push( diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index f0766ee..e8ad6ee 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -925,17 +925,16 @@ export default function Home() { // Oglas gre le v vsako drugo vrstico. Meritev 31. 8. 2026: od 13 enot na // naslovnici jih je 9 vrnilo unfilled, torej je mest vec, kot jih Google // za to stran zapolni. Manj mest z visjo zapolnjenostjo prinese vec. - let adCount = 0; let vidCount = 0; const totalRows = items.length / 4; for (let r = 0; r < totalRows; r++) { const rowStart = r * 4; const hasWidget = items.slice(rowStart, rowStart + 4).some((it) => it.type === "widget"); if (hasWidget) continue; - if (r % 2 === 1) { - const pos = r === 1 ? 3 : adCount % 2 === 0 ? 0 : 3; - items[rowStart + pos] = { type: "ad", key: `ad-row-${adCount++}` }; - } else if (r > 0 && videos.length) { + // 31. 8. 2026 zvecer: enota 4126524750 je v AdSense se vedno Responsiv in + // se v celici 300 px izrise kot 548 ali 600 px, zato vrstico razteguje. + // Do popravka enote je oglas iz mreze umaknjen; ostane vodoravni pas. + if (r > 0 && videos.length) { // video namesto zadnjega clanka v vrstici brez oglasa const v = videos[vidCount % videos.length]; vidCount += 1;