From 7ae7c3e768b04ea24801ae46ba4610c40a7bf86c Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Wed, 21 May 2025 01:18:31 +0200
Subject: [PATCH] Hide library perform global search button without active
search
---
src/modules/library/screens/Library.tsx | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/src/modules/library/screens/Library.tsx b/src/modules/library/screens/Library.tsx
index 5de565e4..18fbf30f 100644
--- a/src/modules/library/screens/Library.tsx
+++ b/src/modules/library/screens/Library.tsx
@@ -170,18 +170,19 @@ export function Library() {
}, [isSelectModeActive, selectedMangas]);
const triggerGlobalSearchButton = useMemo(
- () => (
-
-
-
- ),
+ () =>
+ !!query && (
+
+
+
+ ),
[query],
);