diff options
Diffstat (limited to 'src/static')
| -rw-r--r-- | src/static/css/search.css | 4 | ||||
| -rw-r--r-- | src/static/js/client/index.js | 7 | ||||
| -rw-r--r-- | src/static/js/client/sidebar-search.js | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/static/css/search.css b/src/static/css/search.css index 92925f55..3c56eed6 100644 --- a/src/static/css/search.css +++ b/src/static/css/search.css @@ -356,7 +356,7 @@ /* Shadow along top edge */ .wiki-search-results-container > :first-child { - margin-top: -6px; + margin-top: -4px; } .wiki-search-results-container::before { @@ -368,7 +368,7 @@ /* Shadow along bottom edge */ .wiki-search-results-container > :last-child { - margin-bottom: -12px; + margin-bottom: -10px; } .wiki-search-results-container::after { diff --git a/src/static/js/client/index.js b/src/static/js/client/index.js index cd617bea..9296dff1 100644 --- a/src/static/js/client/index.js +++ b/src/static/js/client/index.js @@ -60,6 +60,7 @@ const clientInfo = window.hsmusicClientInfo = Object.create(null); // So for example, all modules' getPageReferences steps are evaluated, then // all modules' addInternalListeners steps are evaluated, and so on. const setupSteps = { + bindSessionStorage: [], getPageReferences: [], addInternalListeners: [], mutatePageContent: [], @@ -322,7 +323,11 @@ function evaluateBindSessionStorageStep(bindSessionStorage) { function evaluateStep(stepsObject, key) { for (const step of stepsObject[key]) { try { - step(); + if (key === 'bindSessionStorage') { + evaluateBindSessionStorageStep(step); + } else { + step(); + } } catch (error) { console.error(`During ${key}, failed to run ${step.name}`); console.error(error); diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index 7b01cb00..386bf477 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -615,7 +615,7 @@ export function addPageListeners() { return; } - if (event.shiftKey && event.code === 'Slash') { + if (domEvent.shiftKey && domEvent.code === 'Slash') { domEvent.preventDefault(); info.searchLabel.click(); } @@ -785,7 +785,7 @@ function recordActiveQueryContext() { } function clearSidebarSearch() { - const {session, state} = info; + const {state} = info; if (state.stoppedTypingTimeout) { clearTimeout(state.stoppedTypingTimeout); |