mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 17:26:10 +01:00
This commit is contained in:
parent
b1c3ccc9e4
commit
94a938e2c7
1 changed files with 8 additions and 0 deletions
|
|
@ -580,6 +580,10 @@ const addConfigGroupMenu = (config: ISearchOption, edit: Protyle, element: Eleme
|
|||
click() {
|
||||
element.querySelector("#searchList").parentElement.style.flexDirection = "column";
|
||||
setPadding(edit.protyle);
|
||||
config.layout = 0;
|
||||
if (!element.parentElement.getAttribute("data-id")) {
|
||||
localStorage.setItem(Constants.LOCAL_SEARCHEDATA, JSON.stringify(config));
|
||||
}
|
||||
}
|
||||
}).element);
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
|
|
@ -588,6 +592,10 @@ const addConfigGroupMenu = (config: ISearchOption, edit: Protyle, element: Eleme
|
|||
click() {
|
||||
element.querySelector("#searchList").parentElement.style.flexDirection = "row";
|
||||
setPadding(edit.protyle);
|
||||
config.layout = 1;
|
||||
if (!element.parentElement.getAttribute("data-id")) {
|
||||
localStorage.setItem(Constants.LOCAL_SEARCHEDATA, JSON.stringify(config));
|
||||
}
|
||||
}
|
||||
}).element);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue