mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 17:40:55 +08:00
breaking changes: algolia 升級至 v4
feat: 本地搜索增加數據庫加載中和搜索中 loading 顯示 feat: 更改文章美化後,列表的顯示效果 closed #693 closed #686 improvement: UI 微調
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
let blogNameWidth, menusWidth, searchWidth, $nav, hideMenuIndex, mobileSidebarOpen
|
||||
let blogNameWidth, menusWidth, searchWidth, $nav, hideMenuIndex
|
||||
let mobileSidebarOpen = false
|
||||
|
||||
const adjustMenu = (init) => {
|
||||
if (init) {
|
||||
@@ -43,6 +44,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
$body.style.paddingRight = ''
|
||||
btf.fadeOut(document.getElementById('menu-mask'), 0.5)
|
||||
document.getElementById('sidebar-menus').classList.remove('open')
|
||||
mobileSidebarOpen = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -237,7 +239,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
})
|
||||
|
||||
if (window.fjGallery) {
|
||||
btf.initJustifiedGallery(ele)
|
||||
setTimeout(() => { btf.initJustifiedGallery(ele) }, 100)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user