优化 侧边栏

This commit is contained in:
j m 2025-03-08 07:02:44 +08:00
parent ea77fc04f8
commit 0b33ecb904
7 changed files with 5 additions and 22 deletions

View File

@ -4165,10 +4165,6 @@ button.swiper-pagination-bullet {
}
}
.container:not(.two-column) .column-right {
display: none !important;
}
.is-hidden-not-desktop {
display: none !important;
}

View File

@ -2,17 +2,6 @@ window.encrypt = (str) => window.btoa(unescape(encodeURIComponent(str)))
window.decrypt = (str) => decodeURIComponent(escape(window.atob(str)))
const commonContext = {
/* 初始化widget */
initWidget() {
const $columnRight = $('.columns .column-right')
const $columnRightShadow = $('.columns .column-right-shadow')
// 实现将右边widget拷贝的左边
if ($columnRight.length && $columnRightShadow.length && !$columnRightShadow[0].children.length) {
for (const child of $columnRight[0].children) {
$columnRightShadow[0].append(child.cloneNode(true))
}
}
},
/* 初始化目录和公告模块 */
initTocAndNotice() {
const {pathname} = location

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,4 @@
<th:block th:replace="~{${'/widget/' + sidebar.type} :: widget ( sidebar = ${sidebar})}" />
</th:block>
</th:block>
<div th:if="${position == 'left'}" class="column-right-shadow is-hidden-desktop">
</div>
</aside>

View File

@ -30,7 +30,7 @@ spec:
settingName: theme-dream2-plus-setting
configMapName: theme-dream2-plus-configMap
# 版本号
version: 1.4.0.beta2
version: 1.4.0.beta3
# 最低支持的 Halo 版本
require: ">=2.20.0"
# 许可