Skip to content

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

:bug: Show the new tab item tooltip above the button https://github.com/siyuan-note/siyuan/issues/19500

Daniel8b59ce6a88d6
diff --git a/app/src/protyle/render/tabsRender.ts b/app/src/protyle/render/tabsRender.ts
index 5e2bb2cd46..aa27fd3250 100644
--- a/app/src/protyle/render/tabsRender.ts
+++ b/app/src/protyle/render/tabsRender.ts
@@ -348,6 +348,7 @@ export const tabsRender = (element: Element, options: ITabsRenderOptions = {}) =
add.className = "tabs-control ariaLabel";
add.innerHTML = '<svg><use xlink:href="#iconAdd"></use></svg>';
add.setAttribute("aria-label", escapeHtml(controller.options.addLabel || "+"));
+ add.setAttribute("data-position", "north");
add.addEventListener("click", event => {
event.stopPropagation();
controller.options.add?.(tabs);