From 7b09118c34df7fd2567c2cf55acc44693ef5de31 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 4 Dec 2023 20:15:00 +0800 Subject: [PATCH] :art: add clear tip --- app/src/search/util.ts | 3 ++- app/src/util/addClearButton.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/search/util.ts b/app/src/search/util.ts index a58c4f455..eec789567 100644 --- a/app/src/search/util.ts +++ b/app/src/search/util.ts @@ -318,7 +318,8 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clo - +
+
diff --git a/app/src/util/addClearButton.ts b/app/src/util/addClearButton.ts index 6090bc876..7010b4f37 100644 --- a/app/src/util/addClearButton.ts +++ b/app/src/util/addClearButton.ts @@ -19,7 +19,7 @@ export const addClearButton = (options: { className?: string }) => { options.inputElement.insertAdjacentHTML("afterend", - ` + ` `); const clearElement = options.inputElement.nextElementSibling; clearElement.addEventListener("click", () => {