From 69c5897a25ac05d4da7c75618f96b25a51cd68e5 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Sun, 3 Sep 2023 20:48:57 -0400 Subject: [PATCH] fix embed overflow --- src/components/messaging/MessageEmbed.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/messaging/MessageEmbed.tsx b/src/components/messaging/MessageEmbed.tsx index eaad760..b222697 100644 --- a/src/components/messaging/MessageEmbed.tsx +++ b/src/components/messaging/MessageEmbed.tsx @@ -20,8 +20,7 @@ const EmbedContainer = styled.div<{ $type: EmbedType; $color?: string }>` background: var(--background-secondary); border-radius: 4px; display: grid; - grid-template-columns: ${(props) => - props.$type == EmbedType.Link || props.$type == EmbedType.Rich ? "auto min-content" : "max-content"}; + grid-template-columns: auto; grid-template-rows: auto; max-width: 500px; width: ${(props) => (props.$type == EmbedType.Link ? undefined : "min-content")};