mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-13 18:59:22 -05:00
fix(components): wrong calculation of dimensions of embeds layouts
This commit is contained in:
parent
6fcdbd1cef
commit
32d37777f2
2 changed files with 4 additions and 3 deletions
|
@ -59,7 +59,7 @@ export default function Embed({ embed }: Props) {
|
||||||
|
|
||||||
if (embed.type === "Text") {
|
if (embed.type === "Text") {
|
||||||
mw = MAX_EMBED_WIDTH;
|
mw = MAX_EMBED_WIDTH;
|
||||||
mh = 0;
|
mh = 1;
|
||||||
} else {
|
} else {
|
||||||
switch (embed.special?.type) {
|
switch (embed.special?.type) {
|
||||||
case "YouTube":
|
case "YouTube":
|
||||||
|
|
|
@ -582,8 +582,9 @@ export const MyBots = observer(() => {
|
||||||
x.interactions_url =
|
x.interactions_url =
|
||||||
changes.interactions_url;
|
changes.interactions_url;
|
||||||
if (
|
if (
|
||||||
changes.remove ===
|
changes.remove?.includes(
|
||||||
["InteractionsURL"]
|
"InteractionsURL",
|
||||||
|
)
|
||||||
)
|
)
|
||||||
x.interactions_url = undefined;
|
x.interactions_url = undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue