Skip to content

Commit 49fc9b1

Browse files
committed
mix fix
1 parent 7964edf commit 49fc9b1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

assets/js/search-bar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ window.addEventListener('scroll', function () {
158158
backgroundLayer.classList.add('sm-fixed')
159159
}
160160

161-
if (currentScroll == 0) {
161+
if (currentScroll === 0) {
162162
// Remove 'fixed' class when at the top
163163
topSearch.classList.remove('sm-fixed')
164164
sidebarMenu.classList.remove('sm-fixed')

assets/js/sidebar/sidebar-drawer.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ export function initialize () {
4242
addEventListeners()
4343
}
4444

45-
function observeResizing() {
45+
function observeResizing () {
4646
const sidebarWidth = sessionStorage.getItem('sidebar_width')
4747

48-
if(sidebarWidth) {
48+
if (sidebarWidth) {
4949
setSidebarWidth(sidebarWidth)
5050
}
5151

5252
const resizeObserver = new ResizeObserver((entries) => {
5353
for (const entry of entries) {
54-
setSidebarWidth(entry.contentRect.width);
54+
setSidebarWidth(entry.contentRect.width)
5555
}
56-
});
56+
})
5757

58-
resizeObserver.observe(document.getElementById('sidebar'));
58+
resizeObserver.observe(document.getElementById('sidebar'))
5959
}
6060

61-
function setSidebarWidth(width) {
61+
function setSidebarWidth (width) {
6262
sessionStorage.setItem('sidebar_width', width)
63-
document.body.style.setProperty('--sidebarWidth', `${width}px`);
63+
document.body.style.setProperty('--sidebarWidth', `${width}px`)
6464
}
6565

6666
function setDefaultSidebarState () {

formatters/html/dist/html-LNXB4R6R.js renamed to formatters/html/dist/html-L4O5OK2K.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)