Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16442

Vanessa6e2fa8cbe15e
diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.ts
index b906ff842f..ad35e73304 100644
--- a/app/src/mobile/menu/search.ts
+++ b/app/src/mobile/menu/search.ts
@@ -560,6 +560,7 @@ const initSearchEvent = (app: App, element: Element, config: Config.IUILayoutTab
types: getDefaultType(),
replaceTypes: Object.assign({}, Constants.SIYUAN_DEFAULT_REPLACETYPES),
}, config);
+ element.querySelector("#criteria .b3-chip--current")?.classList.remove("b3-chip--current");
});
window.siyuan.menus.menu.fullscreen();
event.stopPropagation();
diff --git a/app/src/search/menu.ts b/app/src/search/menu.ts
index 4e7fb674b5..ef5dfcb276 100644
--- a/app/src/search/menu.ts
+++ b/app/src/search/menu.ts
@@ -446,7 +446,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
label: window.siyuan.languages.searchMethod,
type: "submenu",
submenu: [{
- iconHTML: "",
+ icon: "iconExact",
label: window.siyuan.languages.keyword,
current: config.method === 0,
click() {
@@ -455,7 +455,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true);
}
}, {
- iconHTML: "",
+ icon: "iconQuote",
label: window.siyuan.languages.querySyntax,
current: config.method === 1,
click() {
@@ -464,7 +464,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true);
}
}, {
- iconHTML: "",
+ icon: "iconDatabase",
label: "SQL",
current: config.method === 2,
click() {
@@ -473,7 +473,7 @@ export const moreMenu = async (config: Config.IUILayoutTabSearchConfig,
updateSearchResult(config, element, true);
}
}, {
- iconHTML: "",
+ icon: "iconRegex",
label: window.siyuan.languages.regex,
current: config.method === 3,
click() {