aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 22:36:55 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2024-12-19 22:36:55 +0100
commit733cd49b2fc284d92f23e436f02bc835b4f2808b (patch)
treef479d9f1a67d17ff1cf6021dca7d5dc0e65263ac /src
parenta047ca73226d7638151d62c1612fa5be8628be0f (diff)
feat: change search form cancel mark
Diffstat (limited to 'src')
-rw-r--r--src/frontend/tubo/navigation/views.cljs4
1 files 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?]}]