From dd2a8c8da7e03d53e87d0ab19af6d5549799a3ba Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Fri, 29 May 2026 13:31:46 +0000 Subject: [PATCH] bento: lock left column to 600px so 3-up rail bottom aligns w/ 300x600 Previously the rail row could drift past the bottom of the Blackmagic banner by ~17px depending on title length. Left column is now pinned to lg:h-[600px] (matching the right column 300x600), and the rail grid uses flex-1 min-h-0 to absorb the remaining vertical space after the hero takes its natural aspect-ratio height. Each card switches to a flex column with the image flex-shrink-0 and the text area flex-1 overflow-hidden so the bottom edge lines up perfectly regardless of title/category length. Also tightened the title clamp from line-clamp-3 to line-clamp-2 since the card height is now bounded. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/FeaturedBentoFromDb.tsx | 29 +++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/components/FeaturedBentoFromDb.tsx b/src/components/FeaturedBentoFromDb.tsx index 057adb9..76b4c2b 100644 --- a/src/components/FeaturedBentoFromDb.tsx +++ b/src/components/FeaturedBentoFromDb.tsx @@ -85,7 +85,7 @@ export default async function FeaturedBento() { start at the very top of the row, baseline-aligned with the hero. Mobile collapses to single column (banner hidden via lg:block). */}
-
+
{/* Cinematic 21:9 hero — fills left column, aspect ratio preserved */} - {/* 3-up rail directly under the hero, still in the left column */} -
+ {/* 3-up rail — flex-1 so it fills the exact remaining height inside + the 600px left column. Each card uses h-full + flex-col so the + image keeps its 16:10 ratio while the text area absorbs any + leftover pixels (overflow-hidden line-clamps the title cleanly). + Result: bottom edge of the rail lines up with the bottom of the + 300x600 banner regardless of hero or text-content height. */} +
{rail.map((r) => ( -
+
{r.featured_image_alt
-
-
+
+
{r.category || "News"}
-

+

{r.title}

-
+
+
-
- - ))} + + ))}