Web: Client: fix layout height
This commit is contained in:
parent
db2308128d
commit
f1225ed3f6
@ -116,8 +116,12 @@ const Layout = (props) => {
|
||||
// height = window.screen.availHeight - correctorTabletSafari;
|
||||
// }
|
||||
// }
|
||||
const isSmartBanner =
|
||||
document.getElementsByClassName("smartbanner-container")[0].nodeName ===
|
||||
"DIV";
|
||||
const bannerHeight = isSmartBanner ? 80 : 0;
|
||||
|
||||
let vh = (height - 48) * 0.01;
|
||||
let vh = (height - 48 - bannerHeight) * 0.01;
|
||||
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
||||
|
||||
setContentHeight(height);
|
||||
|
Loading…
Reference in New Issue
Block a user