From 929f25c0bffc2aaaf134c293fb74cdb2b82f2b83 Mon Sep 17 00:00:00 2001 From: Quorafind Date: Tue, 9 Apr 2024 15:29:44 +0800 Subject: [PATCH] feat: support show file path --- src/floatSearchIndex.ts | 10 ---------- styles.css | 13 +++---------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index 97092a8..0f3e729 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -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); diff --git a/styles.css b/styles.css index c0b7905..1aa1cd6 100644 --- a/styles.css +++ b/styles.css @@ -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 }