mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
restore window resize listener
This commit is contained in:
parent
d1f7026804
commit
20fff97804
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue