Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
This commit is contained in:
Joe Milazzo 2024-08-24 19:23:57 -05:00 committed by GitHub
parent dbc4f35107
commit c93af3e56f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
126 changed files with 1989 additions and 2877 deletions

View file

@ -42,7 +42,7 @@ import {SettingsTabId} from "../../preference-nav/preference-nav.component";
export class SideNavComponent implements OnInit {
private readonly router = inject(Router);
private readonly utilityService = inject(UtilityService);
protected readonly utilityService = inject(UtilityService);
private readonly messageHub = inject(MessageHubService);
private readonly actionService = inject(ActionService);
public readonly navService = inject(NavService);
@ -132,8 +132,13 @@ export class SideNavComponent implements OnInit {
constructor() {
// Ensure that on mobile, we are collapsed by default
if (this.utilityService.getActiveBreakpoint() < Breakpoint.Tablet) {
this.navService.collapseSideNav(true);
}
this.collapseSideNavOnMobileNav$.subscribe(() => {
this.navService.toggleSideNav();
this.navService.collapseSideNav(false);
this.cdRef.markForCheck();
});
}
@ -209,4 +214,6 @@ export class SideNavComponent implements OnInit {
this.cdRef.markForCheck();
this.showAllSubject.next(false);
}
protected readonly Breakpoint = Breakpoint;
}