Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Fix image aspect ratio in rare case (#935)

Andrew Mackrodt3c351b6a824e
diff --git a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss
index 80f960155..7466d73d7 100644
--- a/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss
+++ b/UI/Web/src/app/book-reader/book-reader/book-reader.component.scss
@@ -180,6 +180,8 @@ $primary-color: #0062cc;
::ng-deep .scale-width {
max-width: 100%;
+ object-fit: contain;
+ object-position: top center;
}