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

* 更新 topBar.ts

* 更新 topBar.ts
This commit is contained in:
Jeffrey Chen 2024-06-13 09:01:28 +08:00 committed by GitHub
parent 88605d5380
commit 13b21ad6dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>