From b027b62380d570550516a09222ba575b617872f7 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Sat, 16 Sep 2023 23:53:47 +1000 Subject: [PATCH] Remove grid-template-columns: min-content on embeds --- src/components/messaging/MessageEmbed.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/messaging/MessageEmbed.tsx b/src/components/messaging/MessageEmbed.tsx index 1699d23..a3416c4 100644 --- a/src/components/messaging/MessageEmbed.tsx +++ b/src/components/messaging/MessageEmbed.tsx @@ -31,12 +31,12 @@ const Wrapper = styled.div<{ $color?: string }>` border-radius: 4px; `; -const EmbedWrapper = styled.div<{ isArticle?: boolean }>` +const EmbedWrapper = styled.div` max-width: 500px; overflow: hidden; padding: 8px 16px 16px 12px; display: grid; - grid-template-columns: ${(props) => (props.isArticle ? "min-content" : "auto")}; + grid-template-columns: auto; grid-template-rows: auto; `; @@ -244,7 +244,7 @@ export default function MessageEmbed({ embed, contextMenuItems }: EmbedProps) { return ( - + {embed.provider && {embed.provider.name}} {author && {author}} {title && {title}}