Persist cover scale preference per device using LocalStorage

- Store cover scale preference locally to allow different settings per device (desktop, mobile)
- Disabled backend saving for cover scale but kept code commented for future reference
- Load scale preference from LocalStorage on init for faster and device-specific UX
This commit is contained in:
aditya.chandel
2025-07-21 17:27:32 -06:00
committed by Aditya Chandel
parent ca5a09f740
commit 49c4519cf7
4 changed files with 54 additions and 19 deletions
@@ -15,7 +15,6 @@ import {BookService} from '../../book/service/book.service';
import {AppSettingKey, AppSettings} from '../../core/model/app-settings.model';
import {filter, take} from 'rxjs/operators';
import {FileUploadPatternComponent} from './file-upload-pattern/file-upload-pattern.component';
import {OpdsSettingsComponent} from './opds-settings/opds-settings.component';
import {InputText} from 'primeng/inputtext';
@Component({
@@ -30,7 +29,6 @@ import {InputText} from 'primeng/inputtext';
ToggleSwitch,
FormsModule,
FileUploadPatternComponent,
OpdsSettingsComponent,
InputText
],
templateUrl: './global-preferences.component.html',