Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Align folded heading backgrounds with gutter arrows

Danielf0a50a30b630
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index 16ef7a74e2..410bdb4d8f 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -865,7 +865,8 @@
background-color: var(--b3-theme-surface-lighter);
display: block;
position: absolute;
- left: -16px;
+ // 与块标到内容的 4 像素间距保持一致,使折叠三角形位于圆圈中央。
+ left: -20px;
top: 50%;
border-radius: var(--b3-border-radius-b);
margin-top: -8px;
@@ -874,7 +875,7 @@
.bq > div[fold="1"][data-type="NodeHeading"]::before,
.callout-content > div[fold="1"][data-type="NodeHeading"]::before {
- left: -26px;
+ left: -30px;
}
[data-node-id][fold="1"]:not(.li):not([data-type="NodeHeading"]) {