feat(reader): improve cbx reader mobile header and slideshow indicator
This commit is contained in:
@@ -94,6 +94,9 @@ export class CbxReaderComponent implements OnInit, OnDestroy {
|
||||
noteDialogData: CbxNoteDialogData | null = null;
|
||||
private editingNote: BookNoteV2 | null = null;
|
||||
|
||||
// Footer visibility (for slideshow progress bar positioning)
|
||||
isFooterVisible = false;
|
||||
|
||||
// Fullscreen state
|
||||
isFullscreen = false;
|
||||
|
||||
@@ -149,6 +152,10 @@ export class CbxReaderComponent implements OnInit, OnDestroy {
|
||||
this.footerService.setForceVisible(state.footerVisible);
|
||||
});
|
||||
|
||||
this.footerService.forceVisible$
|
||||
.pipe(takeUntil(this.destroy$))
|
||||
.subscribe(visible => this.isFooterVisible = visible);
|
||||
|
||||
this.subscribeToHeaderEvents();
|
||||
this.subscribeToSidebarEvents();
|
||||
this.subscribeToFooterEvents();
|
||||
|
||||
Reference in New Issue
Block a user