From 9d301631ca3aed24ef4e302bc98db90831f417d7 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Mon, 3 Nov 2025 23:35:08 +0800 Subject: [PATCH] fix(layout): restrict image container within column boundaries, closes #2390 (#2398) --- apps/readest-app/src/utils/style.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts index 0a0359b4..d1538f3f 100644 --- a/apps/readest-app/src/utils/style.ts +++ b/apps/readest-app/src/utils/style.ts @@ -354,6 +354,10 @@ const getLayoutStyles = ( color: unset; } + div:has(> img, > svg) { + max-width: 100% !important; + } + /* some epubs set insane inline-block for p */ p { display: block;