diff --git a/src/app/app.component.scss b/src/app/app.component.scss index ca9bd7b..3ad8ffd 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -44,6 +44,8 @@ app-header { @media screen and (max-width: 910px) { .main-content { + position: absolute; + top: 96px; width: calc(100vw - 64px); height: calc(100vh - 176px); padding: 32px; @@ -53,6 +55,10 @@ app-header { min-width: calc(100vw); } + app-header { + position: fixed; + } + app-sidebar { display: none; } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 7b78671..4385c91 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -34,4 +34,15 @@ export class AppComponent { ) { this.router.events.subscribe((event) => {}); } + + ngOnInit() { + this.getUserIdInLocalStorage(); + } + + getUserIdInLocalStorage() { + localStorage.setItem( + 'currentUserId', + JSON.stringify('5EX7gnwPPGEDbN186Rdw') + ); + } }