From b1be9dcf1ea4ee61ba798de0c356a98946580574 Mon Sep 17 00:00:00 2001 From: Smithster Date: Sat, 17 Jun 2023 19:52:22 +0100 Subject: [PATCH] Image attachments: - have max width set - removed height px definition, images should auto scale height to AR --- src/Content/Attachment/ImageAttachment.tsx | 2 +- src/Content/Attachment/style.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Content/Attachment/ImageAttachment.tsx b/src/Content/Attachment/ImageAttachment.tsx index f6641c1..f77b695 100644 --- a/src/Content/Attachment/ImageAttachment.tsx +++ b/src/Content/Attachment/ImageAttachment.tsx @@ -17,7 +17,7 @@ function ImageAttachment(props: ImageAttachmentProps) { ); } diff --git a/src/Content/Attachment/style.ts b/src/Content/Attachment/style.ts index d3137f9..05f3bbb 100644 --- a/src/Content/Attachment/style.ts +++ b/src/Content/Attachment/style.ts @@ -13,6 +13,7 @@ export const ImageAttachment = styled.withConfig({ "img", { cursor: "pointer", + maxWidth: "100%", } );