fix: cap GIF-only messages to 250x250
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user