restore window resize listener

This commit is contained in:
Mononaut 2023-08-24 17:25:27 +09:00
parent d1f7026804
commit 20fff97804
No known key found for this signature in database
GPG key ID: A3F058E41374C04E
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@
position: sticky;
top: 65px;
transition: 0.25s;
margin-left: -250px;
margin-left: -225px;
box-shadow: 5px 0px 30px 0px #000;
padding-bottom: 20px;
}

View file

@ -194,6 +194,7 @@ export class StartComponent implements OnInit, OnDestroy, DoCheck {
}, 300);
}
@HostListener('window:resize', ['$event'])
onResize(): void {
this.chainWidth = window.innerWidth;
this.isMobile = this.chainWidth <= 767.98;