mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-07 18:24:13 -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)
|
takeUntilDestroyed(this.destroyRef)
|
||||||
).subscribe(() => {});
|
).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
|
//send the current width override value to the label
|
||||||
this.widthOverrideLabel$ = this.readerSettings$?.pipe(
|
this.widthOverrideLabel$ = this.readerSettings$?.pipe(
|
||||||
map(values => (parseInt(values.widthSlider) <= 0) ? '' : values.widthSlider + '%'),
|
map(values => (parseInt(values.widthSlider) <= 0) ? '' : values.widthSlider + '%'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user