From c06a1a42ddca1ad608b81732cd50201f7951a990 Mon Sep 17 00:00:00 2001 From: Dhruuuv Date: Sun, 19 Jul 2026 21:14:07 +0530 Subject: [PATCH 1/4] Update search bar close icons to custom gray styling --- frontend/src/App.css | 15 +++++++++++++++ .../src/components/Navigation/Navbar/Navbar.tsx | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 609c22cfc..7362a70b1 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -212,3 +212,18 @@ -ms-user-select: none; /* IE10+/Edge */ user-select: none; /* Standard */ } + +/* Custom search input cancel button */ +input[type="search"]::-webkit-search-cancel-button { + -webkit-appearance: none; + appearance: none; + height: 14px; + width: 14px; + background-image: url("data:image/svg+xml;utf8,"); + cursor: pointer; + opacity: 0.8; +} + +input[type="search"]::-webkit-search-cancel-button:hover { + opacity: 1; +} diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index 53a39f9a0..624c1318b 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -1,6 +1,6 @@ import { Input } from '@/components/ui/input'; import { ThemeSelector } from '@/components/ThemeToggle'; -import { Search, Heart, ArrowRight } from 'lucide-react'; +import { Search, Heart, ArrowRight, X } from 'lucide-react'; import { useDispatch, useSelector } from 'react-redux'; import { selectAvatar, selectName } from '@/features/onboardingSelectors'; import { clearSearch } from '@/features/searchSlice'; @@ -134,11 +134,11 @@ export function Navbar() { {isSearchActive && ( )} From afcecaa05db02591bfc671781db6b1de087c3513 Mon Sep 17 00:00:00 2001 From: Dhruuuv Date: Sun, 19 Jul 2026 22:36:44 +0530 Subject: [PATCH 2/4] added navbar fix 'X' for fedora --- .../components/Navigation/Navbar/Navbar.tsx | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index 624c1318b..fc6cf8091 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -145,18 +145,30 @@ export function Navbar() { )} {/* Input */} - setIsExpanded(true)} - onClick={() => setIsExpanded(true)} - value={searchQuery} - onChange={(e) => setSearchQuery(e.target.value)} - onKeyDown={(e) => { - if (e.key === 'Enter') handleSearchSubmit(); - }} - /> +
+ setIsExpanded(true)} + onClick={() => setIsExpanded(true)} + value={searchQuery} + onChange={(e) => setSearchQuery(e.target.value)} + onKeyDown={(e) => { + if (e.key === 'Enter') handleSearchSubmit(); + }} + /> + {searchQuery && ( + + )} +
{/* FaceSearch Dialog */} From 11d4381615706fef8fdbb0eb813726c0345325f1 Mon Sep 17 00:00:00 2001 From: Dhruuuv Date: Mon, 20 Jul 2026 23:49:35 +0530 Subject: [PATCH 3/4] minor 'X' ui change --- frontend/src/components/Navigation/Navbar/Navbar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index fc6cf8091..8b680dcd0 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -134,11 +134,11 @@ export function Navbar() { {isSearchActive && ( )} @@ -161,11 +161,11 @@ export function Navbar() { {searchQuery && ( )} From be4a4c54e0bffba7aec37266ea58edde94717d9a Mon Sep 17 00:00:00 2001 From: Dhruuuv Date: Tue, 21 Jul 2026 19:46:11 +0530 Subject: [PATCH 4/4] Added coderabbiit fix --- frontend/src/App.css | 12 ++---------- frontend/src/components/Navigation/Navbar/Navbar.tsx | 10 ++++++---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 7362a70b1..c402b8407 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -213,17 +213,9 @@ user-select: none; /* Standard */ } -/* Custom search input cancel button */ +/* Hide native search cancel button */ input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; - height: 14px; - width: 14px; - background-image: url("data:image/svg+xml;utf8,"); - cursor: pointer; - opacity: 0.8; -} - -input[type="search"]::-webkit-search-cancel-button:hover { - opacity: 1; + display: none; } diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index 8b680dcd0..d351f8017 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -133,8 +133,9 @@ export function Navbar() { /> {isSearchActive && (