Skip to content

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

:lipstick: https://github.com/siyuan-note/siyuan/issues/12855

Vanessa0fdac67a8d22
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scss
index 5bd1331fc7..ffd0719d21 100644
--- a/app/src/assets/scss/component/_typography.scss
+++ b/app/src/assets/scss/component/_typography.scss
@@ -434,6 +434,8 @@
color: var(--b3-theme-on-surface);
word-break: break-word;
white-space: break-spaces;
+ line-height: normal;
+ padding: 4px 0;
}
}
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 64c3e3b2df..b5ec432b52 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1036,7 +1036,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme
assetElement.querySelector(".protyle-action__drag").insertAdjacentHTML("afterend", '<span class="img__net"><svg><use xlink:href="#iconLanguage"></use></svg></span>');
}
});
- textElements[1].value = titleElement.textContent;
+ textElements[1].value = titleElement.innerText;
textElements[1].addEventListener("input", (event) => {
const value = (event.target as HTMLInputElement).value;
imgElement.setAttribute("title", value);