Fixing epub image responsiveness

This commit is contained in:
Robbie Davis 2025-07-25 08:30:04 -04:00
parent cb8067b9d0
commit 8a15baee93
2 changed files with 2 additions and 2 deletions

View File

@ -334,13 +334,13 @@ $action-bar-height: 38px;
// This is applied to images in the backend
::ng-deep .kavita-scale-width {
max-height: 100dvh;
max-height: calc(var(--book-reader-content-max-height) - ($action-bar-height)) !important;
max-width: calc(var(--book-reader-content-max-width)) !important;
object-fit: contain;
object-position: top center;
break-inside: avoid;
break-before: column;
max-height: 100vh;
}

View File

@ -986,7 +986,7 @@ export class BookReaderComponent implements OnInit, AfterViewInit, OnDestroy {
updateImageSizes() {
const isVerticalWritingStyle = this.writingStyle === WritingStyle.Vertical;
const height = this.windowHeight - (this.topOffset * 2);
let maxHeight = 'unset';
let maxHeight = '90dvh';
let maxWidth = '';
switch (this.layoutMode) {
case BookPageLayoutMode.Default: