Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: always show "X" button if there is query in search input

Abdullah Attad17d0c190b85
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