diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 3491fb663..4ff0911e6 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -143,6 +143,16 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
+
+
+
+
+
+
+
+
+
+
@@ -180,6 +190,26 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
event.stopPropagation();
event.preventDefault();
break;
+ } else if (target.id === "searchExpand") {
+ Array.from(searchPanelElement.children).forEach(item => {
+ if (item.classList.contains("b3-list-item")) {
+ item.querySelector(".b3-list-item__arrow").classList.add("b3-list-item__arrow--open");
+ item.nextElementSibling.classList.remove("fn__none");
+ }
+ })
+ event.stopPropagation();
+ event.preventDefault();
+ break;
+ } else if (target.id === "searchCollapse") {
+ Array.from(searchPanelElement.children).forEach(item => {
+ if (item.classList.contains("b3-list-item")) {
+ item.querySelector(".b3-list-item__arrow").classList.remove("b3-list-item__arrow--open");
+ item.nextElementSibling.classList.add("fn__none");
+ }
+ })
+ event.stopPropagation();
+ event.preventDefault();
+ break;
} else if (target.id === "searchPath") {
movePathTo([], undefined, (toPath, toNotebook) => {
if (toPath === "/") {
@@ -240,6 +270,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
event.preventDefault();
break;
} else if (target.id === "searchGroup") {
+ element.querySelector("#searchCollapse").parentElement.classList.toggle("fn__none")
config.group = config.group === 0 ? 1 : 0;
inputTimeout = inputEvent(element, config, inputTimeout, edit);
event.stopPropagation();