fix: cap GIF-only messages to 250x250

This commit is contained in:
Jannis Braun
2026-03-24 05:15:10 +01:00
parent 69a16ccdd5
commit acb79c9de7
+2 -2
View File
@@ -340,11 +340,11 @@ export function Message({ message, isCompact, isFirstInGroup, previousMessageId
) : ( ) : (
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
{isGifOnly ? ( {isGifOnly ? (
<div className="mt-1 max-w-[350px] rounded-lg overflow-hidden"> <div className="mt-1 max-w-[250px] rounded-lg overflow-hidden">
<img <img
src={message.content!.trim()} src={message.content!.trim()}
alt="GIF" alt="GIF"
className="max-w-full max-h-[350px] object-contain rounded-lg" className="max-w-full max-h-[250px] object-contain rounded-lg"
loading="lazy" loading="lazy"
/> />
</div> </div>