mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user