EPUB reader: constrain images to text width
All checks were successful
Build and push Docker image / build (push) Successful in 13s
Test / test (push) Successful in 15s

Prevents wide chapter images from causing horizontal overflow/scroll
on mobile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
marwin 2026-04-29 14:12:06 +02:00
parent d64f159044
commit c064d0d4e1

View file

@ -1726,6 +1726,7 @@ body.reader-immersive.reader-show-bottom .reader-overlay { bottom: var(--bar-h)
/* Highlight marks */
.reader-no-bold * { font-weight: normal !important; }
.reader-content img { max-width: 100%; height: auto; display: block; }
.epub-highlight { border-radius:2px; cursor:pointer; }
.epub-highlight[data-color="yellow"] { background:rgba(241,196,15,.4); }
.epub-highlight[data-color="green"] { background:rgba(46,204,113,.35); }