fix(components): wrong calculation of dimensions of embeds layouts

pull/1049/head
kaname-png 2022-05-08 19:40:01 -06:00 committed by Paul Makles
parent 80d2e22c28
commit 530c3d9561
2 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ export default function Embed({ embed }: Props) {
if (embed.type === "Text") {
mw = MAX_EMBED_WIDTH;
mh = 0;
mh = 1;
} else {
switch (embed.special?.type) {
case "YouTube":

View File

@ -582,8 +582,9 @@ export const MyBots = observer(() => {
x.interactions_url =
changes.interactions_url;
if (
changes.remove ===
["InteractionsURL"]
changes.remove?.includes(
"InteractionsURL",
)
)
x.interactions_url = undefined;
}