From 857a795189bc20a0108dd41583496f792913eba4 Mon Sep 17 00:00:00 2001 From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com> Date: Fri, 1 Aug 2025 17:53:32 +0800 Subject: [PATCH] Improve the line-height of the title blocks in the list (#15375) * :lipstick: Improve the line-height of the title blocks in the list fix https://github.com/siyuan-note/siyuan/issues/15003 * :lipstick: Improve the line-height of the title blocks in the list fix https://github.com/siyuan-note/siyuan/issues/15003 --- app/src/assets/scss/protyle/_wysiwyg.scss | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss index 8fa39a402..b33acca90 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;