From 5d7b8f1851be75478e0777ecd3500746a6a05599 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Thu, 19 May 2022 13:42:06 +0100 Subject: [PATCH] fix: add overflow to attachment grid --- src/components/common/messaging/attachments/Grid.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/common/messaging/attachments/Grid.tsx b/src/components/common/messaging/attachments/Grid.tsx index 36faa5b0..dfb252cd 100644 --- a/src/components/common/messaging/attachments/Grid.tsx +++ b/src/components/common/messaging/attachments/Grid.tsx @@ -9,6 +9,7 @@ const Grid = styled.div<{ width: number; height: number }>` --height: ${(props) => props.height}px; display: grid; + overflow: hidden; aspect-ratio: ${(props) => props.width} / ${(props) => props.height}; max-width: min(var(--width), var(--attachment-max-width));