From a0fa716f101f3304fed7ff835513b8e6f482abe7 Mon Sep 17 00:00:00 2001 From: Sudheer Salavadi Date: Tue, 9 Jul 2024 14:15:35 +0530 Subject: [PATCH] Search bar UI improvements in sessions page --- .../shared/Filters/FilterModal/FilterModal.tsx | 4 ++-- .../shared/SessionSearch/SessionSearch.tsx | 2 +- .../SessionSearchField/AiSessionSearchField.tsx | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx b/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx index d16e6dfa9..821ff211c 100644 --- a/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx +++ b/frontend/app/components/shared/Filters/FilterModal/FilterModal.tsx @@ -226,9 +226,9 @@ function FilterModal(props: Props) { {isResultEmpty && !fetchingFilterSearchList ? (
-
+
{' '} - No Suggestions Found + No matching filters.
) : ( diff --git a/frontend/app/components/shared/SessionSearch/SessionSearch.tsx b/frontend/app/components/shared/SessionSearch/SessionSearch.tsx index 24c2e25e9..38e598bf4 100644 --- a/frontend/app/components/shared/SessionSearch/SessionSearch.tsx +++ b/frontend/app/components/shared/SessionSearch/SessionSearch.tsx @@ -110,7 +110,7 @@ function SessionSearch(props: Props) { return !metaLoading ? ( <> {showPanel ? ( -
+
{aiFiltersStore.isLoading ? (
diff --git a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx index cae038e0c..60731d1fb 100644 --- a/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx +++ b/frontend/app/components/shared/SessionSearchField/AiSessionSearchField.tsx @@ -81,11 +81,11 @@ function SessionSearchField(props: Props) { placeholder={ 'Search sessions using any captured event (click, input, page, error...)' } - style={{ minWidth: 360, height: 33 }} + style={{ minWidth: 360, height: 30 }} id="search" type="search" autoComplete="off" - className="px-2 py-1 text-lg placeholder-lg !border-0 rounded-r-lg nofocus" + className="px-2 py-1 text-lg placeholder-lg !border-0 rounded-r-full nofocus" /> {showModal && ( @@ -144,9 +144,9 @@ const AiSearchField = observer( id="search" onKeyDown={handleKeyDown} value={searchQuery} - style={{ minWidth: 360, height: 33 }} + style={{ minWidth: 360, height: 30 }} autoComplete="off" - className="px-2 py-1 text-lg placeholder-lg !border-0 rounded-r-lg nofocus" + className="px-2 py-1 text-lg placeholder-lg !border-0 rounded-e-full nofocus" leadingButton={ searchQuery !== '' ? (
+