From 733cd49b2fc284d92f23e436f02bc835b4f2808b Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Thu, 19 Dec 2024 22:36:55 +0100 Subject: feat: change search form cancel mark --- src/frontend/tubo/navigation/views.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/tubo/navigation/views.cljs b/src/frontend/tubo/navigation/views.cljs index 5b98786..accff34 100644 --- a/src/frontend/tubo/navigation/views.cljs +++ b/src/frontend/tubo/navigation/views.cljs @@ -44,14 +44,14 @@ (reset! !query input)) :placeholder "Search"}] [:button.p-3 {:type "submit"} [:i.fa-solid.fa-search]] - [:button.p-4.text-xs.absolute.right-8 + [:button.p-4.absolute.right-8 {:on-click #(when @!input (set! (.-value @!input) "") (reset! !query "") (.focus @!input)) :type "button" :class (when (empty? @!query) :invisible)} - [:i.fa-solid.fa-circle-xmark]]]])))) + [:i.fa-solid.fa-xmark]]]])))) (defn mobile-nav-item [route icon label & {:keys [new-tab? active?]}] -- cgit v1.2.3