From 009b08ad2ca201a6e5997257859539f61e3e1037 Mon Sep 17 00:00:00 2001 From: RIYA DIXIT Date: Thu, 30 Jul 2026 16:28:45 +0530 Subject: [PATCH] Add clear search button to search query --- src/app.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.rs b/src/app.rs index b8e98fc..78a15b4 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1614,6 +1614,11 @@ impl eframe::App for VisualizerApp { .hint_text("Search problem...") .desired_width(180.0), ); + if !self.search_query.is_empty() { + if ui.small_button("x").on_hover_text("Clear search").clicked() { + self.search_query.clear(); + } + } }); ui.add_space(4.0);