From e9977b2a764dd3794b4b69130cfc23a8721f40fe Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Thu, 16 Jun 2022 15:37:59 +0100 Subject: [PATCH] fix: large images in website previews escape embed box --- src/components/common/messaging/embed/Embed.module.scss | 1 - src/components/common/messaging/embed/EmbedMedia.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/common/messaging/embed/Embed.module.scss b/src/components/common/messaging/embed/Embed.module.scss index c27d0a61..5175f73a 100644 --- a/src/components/common/messaging/embed/Embed.module.scss +++ b/src/components/common/messaging/embed/Embed.module.scss @@ -13,7 +13,6 @@ &.website { gap: 6px; - display: flex; flex-direction: row; > div:nth-child(1) { diff --git a/src/components/common/messaging/embed/EmbedMedia.tsx b/src/components/common/messaging/embed/EmbedMedia.tsx index 201b3d84..87ea8709 100644 --- a/src/components/common/messaging/embed/EmbedMedia.tsx +++ b/src/components/common/messaging/embed/EmbedMedia.tsx @@ -114,7 +114,7 @@ export default function EmbedMedia({ embed, width, height }: Props) { className={styles.image} src={client.proxyFile(url)} loading="lazy" - style={{ width, height }} + style={{ width: "100%", height: "100%" }} onClick={() => modalController.push({ type: "image_viewer",