An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Refine tab tooltips and task creation https://github.com/siyuan-note/siyuan/issues/17642
Danield7db9c9a8dd5
diff --git a/app/src/protyle/render/tabsRender.ts b/app/src/protyle/render/tabsRender.tsindex 6f8987d1b0..095095a98d 100644--- a/app/src/protyle/render/tabsRender.ts+++ b/app/src/protyle/render/tabsRender.ts@@ -234,6 +234,7 @@ export const tabsRender = (element: Element, options: ITabsRenderOptions = {}) =button.firstElementChild.textContent = label;}button.setAttribute("aria-label", escapeHtml(button.textContent));+ button.setAttribute("data-position", "north");const marker = item.getAttribute("tabs-task");if (marker !== null) {const task = document.createElement("span");diff --git a/app/src/protyle/wysiwyg/tabs.ts b/app/src/protyle/wysiwyg/tabs.tsindex 1e1ec350fa..08062d502f 100644--- a/app/src/protyle/wysiwyg/tabs.ts+++ b/app/src/protyle/wysiwyg/tabs.ts@@ -93,6 +93,12 @@ export const renameTab = (protyle: IProtyle, item: HTMLElement) => {const addTab = (protyle: IProtyle, tabs: HTMLElement) => {const item = newTab(protyle);+ const items = getTabItems(tabs);+ const active = items.find(entry => entry.dataset.tabsHidden === "false") ||+ items.find(entry => entry.dataset.nodeId === tabs.getAttribute("tabs-active-id")) || items[0];+ if (active?.hasAttribute("tabs-task")) {+ item.setAttribute("tabs-task", " ");+ }changeTabs(protyle, [tabs], () => {tabs.insertBefore(item, tabs.querySelector(":scope > .protyle-attr"));tabs.setAttribute("tabs-active-id", item.dataset.nodeId);