restore window resize listener

This commit is contained in:
Mononaut committed 2023-08-24 17:28:21 +09:00
1 parent d1f7026804
commit 20fff97804
2 files changed
+2 -1

No files matched your search

@@ -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;
}
@@ -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;