From ce673a7608ddf7029a38e80649a0c46a12bc87d5 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sat, 16 Sep 2023 00:00:42 -0400 Subject: [PATCH] fix images having no width when not rendered --- src/components/messaging/MessageAttachment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/messaging/MessageAttachment.tsx b/src/components/messaging/MessageAttachment.tsx index 3adff50..c31311f 100644 --- a/src/components/messaging/MessageAttachment.tsx +++ b/src/components/messaging/MessageAttachment.tsx @@ -13,7 +13,7 @@ import AttachmentPreviewModal from "../modals/AttachmentPreviewModal"; const Attachment = styled.div<{ withPointer?: boolean }>` cursor: ${(props) => (props.withPointer ? "pointer" : "default")}; - width: min-content; + width: fit-content; padding: 2px 0; `;