From 1e7d6ba5b17c1ecd0897802af7656b0a7d165680 Mon Sep 17 00:00:00 2001 From: Leeingnyo Date: Wed, 18 Aug 2021 22:16:33 +0900 Subject: [PATCH] Keep an image ratio at the paged mode, clamping the image in a screen --- src/views/reader.html.ecr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/reader.html.ecr b/src/views/reader.html.ecr index ff86d17..3d90a10 100644 --- a/src/views/reader.html.ecr +++ b/src/views/reader.html.ecr @@ -50,6 +50,9 @@ width:${mode === 'width' ? '100vw' : 'auto'}; height:${mode === 'height' ? '100vh' : 'auto'}; margin-bottom:0; + max-width:100%; + max-height:100%; + object-fit: contain; `" />