diff --git a/attached_assets/image_1772318550164.png b/attached_assets/image_1772318550164.png new file mode 100644 index 0000000..c247f10 Binary files /dev/null and b/attached_assets/image_1772318550164.png differ diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index 10f8948..6d8fb9e 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -494,6 +494,13 @@ export default function Home() { while (ai < shuffled.length) { items.push({ type: "article", article: shuffled[ai++] }); } + + const totalSlots = Math.ceil(items.length / 4) * 4; + let fill = 0; + while (items.length < totalSlots && shuffled.length > 0) { + items.push({ type: "article", article: shuffled[fill % shuffled.length] }); + fill++; + } return items; }, [shuffled, widgets]);