mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix(components): wrong calculation of dimensions of embeds layouts
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user