refactor(client): refactor and performance improve of MkSpacer

This commit is contained in:
syuilo
2023-01-03 10:46:56 +09:00
parent 2184240ef1
commit 6c10588e77
4 changed files with 24 additions and 79 deletions

View File

@@ -76,7 +76,7 @@ provideMetadataReceiver((info) => {
}
});
provide('shouldHeaderThin', showMenuOnTop);
provide('shouldSpacerMin', true);
provide('forceSpacerMin', true);
function attachSticky(el) {
const sticky = new StickySidebar(el, defaultStore.state.menuDisplay === 'top' ? 0 : 16, defaultStore.state.menuDisplay === 'top' ? 60 : 0); // TODO: ヘッダーの高さを60pxと決め打ちしているのを直す