1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 18:32:34 +01:00

fix embed overflow

This commit is contained in:
Puyodead1 2023-09-03 20:48:57 -04:00
parent cc884ea0fd
commit 69c5897a25
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -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")};