mirror of
https://github.com/gotson/komga.git
synced 2026-04-26 00:42:35 +02:00
* feat(webreader): adding scale type original to webtoon mode * fix(webreader): correcting scale type used for continuous reader * feat(webreader): adding setting for side padding to webtoon mode * feat(webreader): adding shortcut for side padding and new values * refactor: update padding percentage data type to number array * fix: correcting type issues after previous refactor * fix: images not showing if page has no dimension width and height on pages are not guaranteed * refactor: add new enum values to ScaleTypeText previous behavior worked only because the values of ScaleType and ContinuousScaleType are the same * refactor: simplify conditions fullWidthReader was only used for the continuous reader settings inside a reader type are not conditional * refactor: rearrange shortcuts continuous reader did not have specific settings this rearranges shortcuts for the help menu Co-authored-by: Gauthier Roebroeck <gauthier.roebroeck@gmail.com>
18 lines
620 B
TypeScript
18 lines
620 B
TypeScript
import { ContinuousScaleType, ScaleType } from '@/types/enum-reader'
|
|
import { ReadingDirection } from '@/types/enum-books'
|
|
|
|
export const ScaleTypeText = {
|
|
[ScaleType.SCREEN]: 'Fit screen',
|
|
[ScaleType.HEIGHT]: 'Fit height',
|
|
[ScaleType.WIDTH]: 'Fit width',
|
|
[ContinuousScaleType.WIDTH]: 'Fit width',
|
|
[ScaleType.ORIGINAL]: 'Original',
|
|
[ContinuousScaleType.ORIGINAL]: 'Original',
|
|
}
|
|
|
|
export const ReadingDirectionText = {
|
|
[ReadingDirection.LEFT_TO_RIGHT]: 'Left to right',
|
|
[ReadingDirection.RIGHT_TO_LEFT]: 'Right to left',
|
|
[ReadingDirection.VERTICAL]: 'Vertical',
|
|
[ReadingDirection.WEBTOON]: 'Webtoon',
|
|
}
|