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:
+1
-1
@@ -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">
|
||||
|
||||
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user