From 6df65a01202b07588de0fc0ba860e1eb08048dd4 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Wed, 10 Sep 2025 16:56:27 +0000 Subject: [PATCH] fix: make Physical Disks search field consistent with Storage Pools styling Updated the Physical Disks search to match the Storage Pools search field: - Added container with white/gray background and border - Added search icon on the left - Matched padding, text size, and focus states - Ensured consistent dark mode styling --- .../src/components/Storage/Storage.tsx | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx index 32ac72bec..c9f9520dc 100644 --- a/frontend-modern/src/components/Storage/Storage.tsx +++ b/frontend-modern/src/components/Storage/Storage.tsx @@ -263,14 +263,22 @@ const Storage: Component = () => { {/* Show simple search for disks */} -
- setSearchTerm(e.currentTarget.value)} - class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400" - /> +
+
+ setSearchTerm(e.currentTarget.value)} + ref={(el) => searchInputRef = el} + class="w-full pl-9 pr-3 py-1.5 text-sm border border-gray-300 dark:border-gray-600 rounded-lg + bg-white dark:bg-gray-900 text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-500 + focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 dark:focus:border-blue-400 outline-none transition-all" + /> + + + +