Skip to content

Commit 86d1197

Browse files
committed
assets, layouts: support list format for mobile
1 parent 5ceb78e commit 86d1197

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/scss/custom.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ blockquote {
3939
}
4040
/* 移动端隐藏目录 */
4141
@media (max-width: 1024px) {
42-
.absolute.left-0 {
42+
.toc.left-0 {
4343
display: none;
4444
}
4545
}

layouts/blog/single.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1 class="h2 mb-4">
4747

4848
<div class="relative">
4949
<!-- 独立 TOC 容器:固定在左侧 -->
50-
<div class="absolute left-0 top-0 h-full lg:w-3/12 md:w-4/12 pr-4" style="transform: translateX(-100%)">
50+
<div class="absolute left-0 top-0 h-full lg:w-3/12 md:w-4/12 pr-4 toc" style="transform: translateX(-100%)">
5151
<div class="sticky top-20 overflow-y-auto max-h-[80vh] pe-4">
5252
{{ partial "toc.html" (dict "Class" "blog" "Collapsed" false "TableOfContents" .TableOfContents ) }}
5353
</div>

0 commit comments

Comments
 (0)