Skip to content

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

Improve the line-height of the title blocks in the list (#15375)

Jeffrey Chen857a795189bc
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index 8fa39a4026..b33acca901 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -183,7 +183,29 @@
line-height: calc(1.625em + 8px);
& ~ [data-type="NodeHeading"] {
- line-height: 1em;
+ &.h1 {
+ line-height: calc(1.625em / 1.75);
+ }
+
+ &.h2 {
+ line-height: calc(1.625em / 1.55);
+ }
+
+ &.h3 {
+ line-height: calc(1.625em / 1.38);
+ }
+
+ &.h4 {
+ line-height: calc(1.625em / 1.25);
+ }
+
+ &.h5 {
+ line-height: calc(1.625em / 1.13);
+ }
+
+ &.h6 {
+ line-height: 1.625em;
+ }
& > [spellcheck] {
min-height: 1em;