Skip to content

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

:art: Align the inline font family label with its selector https://github.com/siyuan-note/siyuan/issues/17336

Danieladcc26d5f135
diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts
index 572d20e132..86e2cc7fcb 100644
--- a/app/src/protyle/toolbar/Font.ts
+++ b/app/src/protyle/toolbar/Font.ts
@@ -307,7 +307,7 @@ export const appearanceMenu = (protyle: IProtyle, nodeElements?: Element[],
</div>
<div class="fn__hr${disableFontFamily ? " fn__none" : ""}"></div>
<div data-id="fontFamily" class="fn__flex${disableFontFamily ? " fn__none" : ""}">
- ${window.siyuan.languages.fontFamily}
+ <span class="fn__flex-center">${window.siyuan.languages.fontFamily}</span>
<span class="fn__flex-1"></span>
<input class="b3-select fn__flex-center fn__size96" data-type="fontFamilyMenu" data-menu="true" type="text" value="${escapeAttr(getInlineFontFamilyLabel(fontFamilyState))}" readonly aria-label="${escapeAttr(window.siyuan.languages.fontFamily)}" aria-haspopup="listbox" aria-expanded="false">
</div>