From d030044df35b09522e5038254a9384c53cecd5ee Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 17 Jan 2020 14:32:17 +0800 Subject: [PATCH] feat(web reader): add 'original' fit option closes #71 --- komga-webui/src/types/common.ts | 6 ++++ komga-webui/src/views/BookReader.vue | 42 ++++++++++++++++++---------- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/komga-webui/src/types/common.ts b/komga-webui/src/types/common.ts index 80a276bd9..a9a34a7f2 100644 --- a/komga-webui/src/types/common.ts +++ b/komga-webui/src/types/common.ts @@ -3,3 +3,9 @@ export enum LoadState { NotLoaded, Loading } + +export enum ImageFit { + Width = 'width', + Height = 'height', + Original = 'original' +} diff --git a/komga-webui/src/views/BookReader.vue b/komga-webui/src/views/BookReader.vue index a217a89d3..4b30bad79 100644 --- a/komga-webui/src/views/BookReader.vue +++ b/komga-webui/src/views/BookReader.vue @@ -157,13 +157,17 @@ - + Fit to width - + Fit to height + + + Original + @@ -304,9 +308,10 @@