Hide Page View toggle on mobile portrait since two-page view is unsupported (#2425)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-23 09:35:32 -07:00
committed by GitHub
co-authored by acx10
parent f3e96bc0ee
commit 8ba0f38cca
2 changed files with 5 additions and 1 deletions
@@ -32,7 +32,7 @@
</div>
<!-- Page View (only in paginated mode) -->
@if (isPaginated) {
@if (isPaginated && !isPhonePortrait) {
<div class="control">
<label>Page View</label>
<div class="control-right">
@@ -72,6 +72,10 @@ export class CbxQuickSettingsComponent implements OnInit, OnDestroy {
return this.state.scrollMode === CbxScrollMode.PAGINATED;
}
get isPhonePortrait(): boolean {
return window.innerWidth < 768 && window.innerHeight > window.innerWidth;
}
onFitModeSelect(mode: CbxFitMode): void {
this.quickSettingsService.emitFitModeChange(mode);
}