mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-07 10:14:12 -04:00
bugfix: widthoverride label being none% (#3030)
This commit is contained in:
parent
be6285b9d4
commit
5f0859c202
@ -594,6 +594,9 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
takeUntilDestroyed(this.destroyRef)
|
||||
).subscribe(() => {});
|
||||
|
||||
//sets the default override to 0, fixing the none% bug
|
||||
this.generalSettingsForm.get('widthSlider')!.setValue(0);
|
||||
|
||||
//send the current width override value to the label
|
||||
this.widthOverrideLabel$ = this.readerSettings$?.pipe(
|
||||
map(values => (parseInt(values.widthSlider) <= 0) ? '' : values.widthSlider + '%'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user