From 564e7190e8061cdebafef768accff95454003d7b Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Mon, 3 Mar 2025 10:24:03 +0500 Subject: [PATCH] web: always show "X" button if there is query in search input --- apps/web/src/components/route-container/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/route-container/index.tsx b/apps/web/src/components/route-container/index.tsx index 6f5db59b6..6ab4b7a4f 100644 --- a/apps/web/src/components/route-container/index.tsx +++ b/apps/web/src/components/route-container/index.tsx @@ -108,7 +108,7 @@ function Header(props: RouteContainerProps) { textAlign: "center" }, "& + .rightActions #search-action-button": { - opacity: 0 + opacity: query ? 1 : 0 }, "&:focus + .rightActions #search-action-button": { opacity: 1