From e8eb14bfe3643224ae8b8fac058045431e824b69 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 14 Jan 2026 11:16:26 +0000 Subject: [PATCH] fix: Add max height constraint to grid preset to prevent oversized images in chat The grid preset had no max height constraint, causing images with preserved aspect ratios to render at their full natural height. This made tall images dominate the chat view. Now limiting grid preset images to 400px max height for better chat readability while still showing good detail. --- src/components/nostr/MediaEmbed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nostr/MediaEmbed.tsx b/src/components/nostr/MediaEmbed.tsx index ff77a32..5baa963 100644 --- a/src/components/nostr/MediaEmbed.tsx +++ b/src/components/nostr/MediaEmbed.tsx @@ -43,7 +43,7 @@ const PRESETS = { roundedClass: "rounded-md", }, grid: { - maxHeightClass: "", + maxHeightClass: "max-h-[400px]", maxWidthClass: "w-full", roundedClass: "rounded-md", objectFit: "cover" as const,