Skip to content

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

改进主菜单按钮悬浮提示 (#11706)

Jeffrey Chen13b21ad6dcb3
diff --git a/app/src/layout/topBar.ts b/app/src/layout/topBar.ts
index d644d77ab1..049ed94212 100644
--- a/app/src/layout/topBar.ts
+++ b/app/src/layout/topBar.ts
@@ -24,7 +24,7 @@ import {commandPanel} from "../boot/globalEvent/command/panel";
export const initBar = (app: App) => {
const toolbarElement = document.getElementById("toolbar");
toolbarElement.innerHTML = `
-<div id="barWorkspace" aria-label="${updateHotkeyTip(window.siyuan.config.keymap.general.mainMenu.custom)} <span class='ft__on-surface'>${window.siyuan.languages.mainMenu}</span>" class="ariaLabel toolbar__item toolbar__item--active">
+<div id="barWorkspace" class="ariaLabel toolbar__item toolbar__item--active" aria-label="${window.siyuan.languages.mainMenu} ${updateHotkeyTip(window.siyuan.config.keymap.general.mainMenu.custom)}">
<span class="toolbar__text">${getWorkspaceName()}</span>
<svg class="toolbar__svg"><use xlink:href="#iconDown"></use></svg>
</div>