From ee5e558e9f79cf58aa9714143c5fbb07872dd7fb Mon Sep 17 00:00:00 2001 From: bree Date: Fri, 2 Jul 2021 22:37:45 -0400 Subject: [PATCH] fix long width image previews to fit into view --- src/components/common/messaging/bars/FilePreview.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/common/messaging/bars/FilePreview.tsx b/src/components/common/messaging/bars/FilePreview.tsx index 9f0a98c4..80f9fae5 100644 --- a/src/components/common/messaging/bars/FilePreview.tsx +++ b/src/components/common/messaging/bars/FilePreview.tsx @@ -101,6 +101,7 @@ const PreviewBox = styled.div` .icon { height: 100px; + width: 100%; margin-bottom: 4px; object-fit: contain; }