Fixed sidebar to support responsive mode #1.1.0.rc6

This commit is contained in:
2023-08-19 10:04:38 +02:00
parent 12f231aa41
commit df2b660b75
10 changed files with 40 additions and 24 deletions

View File

@@ -16,7 +16,7 @@ import { takeUntil } from "rxjs/operators";
export class AppComponent implements OnInit, OnDestroy {
themeName: string = Themes.Default;
sidebarWidth: string = '175px';
isSidebarOpen: boolean = true;
isLoggedIn: boolean = false;
@@ -29,10 +29,10 @@ export class AppComponent implements OnInit, OnDestroy {
private translateService: TranslateService,
private config: PrimeNGConfig,
) {
this.themeService.sidebarWidth$.pipe(
this.themeService.isSidebarOpen$.pipe(
takeUntil(this.unsubscriber)
).subscribe(value => {
this.sidebarWidth = value;
this.isSidebarOpen = value;
});
this.themeService.themeName$.pipe(
takeUntil(this.unsubscriber)