refactor: 优化后台文章大纲组件及编辑页侧边栏布局
This commit is contained in:
1 parent
7c98f4c12b
commit
f4e3b3257b
4 files changed
+9
-2
No files matched your search
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
<nav aria-label="正文大纲" class="article-outline">
|
<nav aria-label="正文大纲" class="article-outline">
|
||||||
{#if outline.headings.length}
|
{#if outline.headings.length}
|
||||||
<p class="count">{outline.headings.length} 个标题</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
{#each outline.headings as heading, index (heading.from)}
|
{#each outline.headings as heading, index (heading.from)}
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border-radius: 4px;
|
/* border-radius removed */
|
||||||
}
|
}
|
||||||
.trigger {
|
.trigger {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -370,6 +370,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
max-height: calc(100vh - 40px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-panel {
|
.sidebar-panel {
|
||||||
@@ -392,6 +394,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
max-height: none;
|
||||||
|
overflow-y: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -400,6 +400,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
max-height: calc(100vh - 40px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-panel {
|
.sidebar-panel {
|
||||||
@@ -422,6 +424,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
max-height: none;
|
||||||
|
overflow-y: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user