Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/15908

Vanessa4fc5f0e7ecb9
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 5c753bbeef..e97d4480b4 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -552,6 +552,10 @@ export const popTextCell = (protyle: IProtyle, cellElements: HTMLElement[], type
const avMaskElement = document.querySelector(".av__mask");
const inputElement = avMaskElement.querySelector(".b3-text-field") as HTMLInputElement;
if (inputElement) {
+ const style = getComputedStyle(cellElements[0]);
+ inputElement.style.fontSize = style.fontSize;
+ inputElement.style.lineHeight = style.lineHeight;
+ inputElement.style.fontFamily = style.fontFamily;
if (["text", "email", "phone", "block", "template"].includes(type)) {
inputElement.value = cellElements[0].querySelector(".av__celltext")?.textContent || "";
}