From fcb418101e84fad8928158aaf7ab3dad9e71e0cb Mon Sep 17 00:00:00 2001 From: Renato Date: Wed, 5 Aug 2026 05:02:47 +0800 Subject: [PATCH] fix: grid estable en home (reemplazar CSS columns rebalanceable por grid con celdas fijas) --- src/components/infinite-grid.tsx | 7 +++++-- src/components/post-card.tsx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/infinite-grid.tsx b/src/components/infinite-grid.tsx index 148593a..900df31 100644 --- a/src/components/infinite-grid.tsx +++ b/src/components/infinite-grid.tsx @@ -67,9 +67,12 @@ export function InfinitePostGrid({ initialPosts }: { initialPosts: Post[] }) { return (
-
+ {/* Grid estable: celdas fijas, el scroll infinito agrega filas nuevas + ABAJO sin re-maquetar lo que ya está en pantalla (a diferencia de + CSS columns que re-balancea y mueve los items). */} +
{posts.map((post, i) => ( -
+
))} diff --git a/src/components/post-card.tsx b/src/components/post-card.tsx index 17f6715..07c4cc7 100644 --- a/src/components/post-card.tsx +++ b/src/components/post-card.tsx @@ -89,7 +89,7 @@ export function PostCard({ post, compact = false }: { post: Post; compact?: bool {/* Metadatos */}
-

+

{post.title}