fix: insert bottom spacing appropriately (#11370)

This commit is contained in:
Ibuki Sugiyama
2023-07-25 19:49:52 +09:00
committed by GitHub
parent fe13755be8
commit 545b5cab96
3 changed files with 7 additions and 2 deletions

View File

@@ -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,