feat: support show file path

This commit is contained in:
Quorafind 2024-04-09 15:29:44 +08:00
parent a9913fd278
commit 929f25c0bf
2 changed files with 3 additions and 20 deletions

View file

@ -433,16 +433,6 @@ export default class FloatSearchPlugin extends Plugin {
}
};
},
startSearch(old) {
return function () {
old.call(this);
const viewState = this.getState();
updateCurrentState({
...viewState,
query: this.searchComponent.getValue(),
});
};
},
setState(old) {
return async function (state: any, result: any) {
old.call(this, state, result);

View file

@ -7,13 +7,9 @@ If your plugin does not need CSS, delete this file.
*/
.float-search-modal {
<<<<<<< HEAD
width: 600px;
=======
width: 700px;
>>>>>>> 285693757c1023d96948f67c0ca5efe185cae1e8
padding-bottom: 0;
< < < < < < < HEAD width: 600 px;
= = = = = = = width: 700 px;
>>> >>> > 285693757 c1023d96948f67c0ca5efe185cae1e8 padding-bottom: 0;
}
.float-search-modal.float-search-width {
@ -114,7 +110,6 @@ If your plugin does not need CSS, delete this file.
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
<<<<<<< HEAD
}
body:not(.show-file-path) .search-result-file-title .search-result-file-path {
@ -147,6 +142,4 @@ body:not(.show-file-path) .search-result-file-title .search-result-file-path {
.show-file-path .search-result-file-title .search-result-file-path:hover {
background-color: var(--background-secondary);
=======
>>>>>>> 285693757c1023d96948f67c0ca5efe185cae1e8
}