fix: insert bottom spacing appropriately (#11370)
This commit is contained in:
parent
fe13755be8
commit
545b5cab96
3 changed files with 7 additions and 2 deletions
|
|
@ -207,9 +207,11 @@ watch($$(navFooter), () => {
|
|||
if (navFooter) {
|
||||
navFooterHeight = navFooter.offsetHeight;
|
||||
document.body.style.setProperty('--stickyBottom', `${navFooterHeight}px`);
|
||||
document.body.style.setProperty('--minBottomSpacing', 'var(--minBottomSpacingMobile)');
|
||||
} else {
|
||||
navFooterHeight = 0;
|
||||
document.body.style.setProperty('--stickyBottom', '0px');
|
||||
document.body.style.setProperty('--minBottomSpacing', '0px');
|
||||
}
|
||||
}, {
|
||||
immediate: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue