From 63b565e7205cf8bb901946266aab2121b10ec9d9 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 10 Jun 2024 12:42:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84(frontend)=20max=20img=20width=20wi?= =?UTF-8?q?th=20container=20width?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The img could be much bigger than the page width in a generated pdf. We limit the max img width to the container width. --- src/backend/demo/data/template/css.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/demo/data/template/css.txt b/src/backend/demo/data/template/css.txt index c3eee9e1..8856136a 100644 --- a/src/backend/demo/data/template/css.txt +++ b/src/backend/demo/data/template/css.txt @@ -13,3 +13,6 @@ body { .body{ margin-top: 1.5rem } +img { + max-width: 100%; +}