fix: モバイル表示のときページ下部がナビゲーションバーに隠れる問題を修正 (#110)
* fix: insert bottom spacing appropriately * Revert CHANGELOG.md --------- Co-authored-by: ibuki2003 <main@fuwa.dev>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user