Add fit page to window reader setting (#323)

* Add fit page to window reader setting

* Renamed option and conditional rendering

* Rename translation key
This commit is contained in:
Alexandre
2023-06-03 20:53:52 +02:00
committed by GitHub
parent 46a7ff6e3b
commit d60ed0c055
8 changed files with 30 additions and 3 deletions

View File

@@ -30,6 +30,7 @@ function imageStyle(settings: IReaderSettings): any {
};
}, []);
if (
settings.fitPageToWindow ||
settings.readerType === 'DoubleLTR' ||
settings.readerType === 'DoubleRTL' ||
settings.readerType === 'ContinuesHorizontalLTR' ||