Skip to content

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

:bug: Prevent input shadow clipping in inline font menu https://github.com/siyuan-note/siyuan/issues/19526

Daniel896efbd108a7
diff --git a/app/src/protyle/toolbar/fontFamilyMenu.ts b/app/src/protyle/toolbar/fontFamilyMenu.ts
index 0fc14b04e4..997e1981f6 100644
--- a/app/src/protyle/toolbar/fontFamilyMenu.ts
+++ b/app/src/protyle/toolbar/fontFamilyMenu.ts
@@ -320,6 +320,7 @@ export const openFontFamilyMenu = async (target: HTMLElement, options: IFontFami
const openMenu = () => {
const rect = target.getBoundingClientRect();
menu.open({x: rect.left, y: rect.bottom, h: rect.height, w: rect.width, target});
+ menu.element.querySelector(".b3-menu__items").setAttribute("style", "overflow: initial");
};
target.setAttribute("aria-expanded", "true");
openMenu();