From bf342f7bcfb7414caa9fd5c75f9e60b82971d8ef Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 8 Feb 2025 11:58:21 +0200 Subject: [PATCH] fix(doc): width on mobile with images --- src/public/app/widgets/type_widgets/doc.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/public/app/widgets/type_widgets/doc.ts b/src/public/app/widgets/type_widgets/doc.ts index 2e8b2ab6f..ae6165027 100644 --- a/src/public/app/widgets/type_widgets/doc.ts +++ b/src/public/app/widgets/type_widgets/doc.ts @@ -33,6 +33,15 @@ const TPL = `
margin: 0; padding-bottom: 0.25em; } + + img { + max-width: 90vw; + height: auto; + } + + td img { + max-width: 40vw; + }