Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9169

Vanessa021e09e444de
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 6bb7e5f521..f88f1dbc21 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -1224,10 +1224,9 @@ export class Toolbar {
if (inputElement.value.trim() && !matchInput) {
html = `<div class="b3-list-item"><b>${inputElement.value.replace(/`| /g, "_")}</b></div>${html}`;
}
+ html = `<div class="b3-list-item b3-list-item--focus">${window.siyuan.languages.clear}</div>` + html;
this.subElement.firstElementChild.lastElementChild.innerHTML = html;
- if (html) {
- this.subElement.firstElementChild.lastElementChild.firstElementChild.classList.add("b3-list-item--focus");
- }
+ this.subElement.firstElementChild.lastElementChild.firstElementChild.classList.add("b3-list-item--focus");
event.stopPropagation();
});
this.subElement.lastElementChild.lastElementChild.addEventListener("click", (event) => {