visualViewport is supported in Chrome only
parent
488d581d9e
commit
62213ee9cc
|
@ -30,7 +30,7 @@ class UserNavBlock extends Component {
|
||||||
|
|
||||||
const isSuperAdmin = role === SUPERADMIN_ROLE
|
const isSuperAdmin = role === SUPERADMIN_ROLE
|
||||||
|
|
||||||
const isSmallViewport = window.visualViewport.height < 850
|
const isSmallViewport = window.innerHeight < 850
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="sidebar--item">
|
<div className="sidebar--item">
|
||||||
|
|
Loading…
Reference in New Issue