mirror of
https://github.com/status-im/discover-dapps.git
synced 2025-01-16 05:34:30 +00:00
Fixes sticky header
This commit is contained in:
parent
5cc9a8359e
commit
d87c2aef61
@ -6,6 +6,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: calculateRem(15);
|
padding: calculateRem(15);
|
||||||
|
z-index: 99;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.25);
|
||||||
|
@ -18,7 +18,7 @@ class Dapps extends React.Component {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.scanHeaderPositions()
|
this.scanHeaderPositions()
|
||||||
this.boundScroll = debounce(this.handleScroll.bind(this), 50)
|
this.boundScroll = debounce(this.handleScroll.bind(this), 1)
|
||||||
window.addEventListener('scroll', this.boundScroll)
|
window.addEventListener('scroll', this.boundScroll)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user