From a8f10616a44260c6dbe0cb8a421937287d4d1f76 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 28 Feb 2026 22:33:54 +0000 Subject: [PATCH] Prevent specific content types from appearing on the same page row Ensure that "news" and "breaking" widgets, as well as "gallery" and "gallery2" widgets, are never placed in the same row. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 517dfa7b-26ac-463d-a6e1-a58c6df97188 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: e527b2d8-c289-4a20-b45b-6f81f15b49c3 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/f209e72a-0939-48fa-84fc-57854de71967/517dfa7b-26ac-463d-a6e1-a58c6df97188/0ZGabQy Replit-Helium-Checkpoint-Created: true --- client/src/pages/home.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index acca898..80fc9cb 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -467,7 +467,8 @@ export default function Home() { valid = true; for (let i = 0; i < w.length - 1; i += 2) { const pair = [w[i].id, w[i + 1]?.id]; - if (pair.includes("news") && pair.includes("breaking")) { + if ((pair.includes("news") && pair.includes("breaking")) || + (pair.includes("gallery") && pair.includes("gallery2"))) { valid = false; break; }