From eda52a3b8273961db60d367c25f552522c514bd6 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 16 Oct 2024 07:15:25 -0500 Subject: [PATCH] Search and search filter UI tweaks (#14381) * fix search type switches * select/unselect style for more filters button * fix reset button * fix labels scrollbar * set min width and remove modal to allow scrolling with filters open * hover colors * better match of font size * stop sheet from displaying console errors * fix detail dialog behavior --- .../components/card/SearchThumbnailFooter.tsx | 8 +-- .../components/filter/SearchFilterGroup.tsx | 8 ++- .../overlay/detail/SearchDetailDialog.tsx | 19 ++--- .../overlay/dialog/PlatformAwareDialog.tsx | 25 ++++++- .../overlay/dialog/SearchFilterDialog.tsx | 71 +++++++++++++------ 5 files changed, 86 insertions(+), 45 deletions(-) diff --git a/web/src/components/card/SearchThumbnailFooter.tsx b/web/src/components/card/SearchThumbnailFooter.tsx index 1a16b3ad0..af7606b37 100644 --- a/web/src/components/card/SearchThumbnailFooter.tsx +++ b/web/src/components/card/SearchThumbnailFooter.tsx @@ -113,7 +113,7 @@ export default function SearchThumbnailFooter({ }} /> -
+
{searchResult.end_time ? ( ) : ( @@ -132,7 +132,7 @@ export default function SearchThumbnailFooter({ setShowFrigatePlus(true)} /> @@ -144,7 +144,7 @@ export default function SearchThumbnailFooter({ @@ -154,7 +154,7 @@ export default function SearchThumbnailFooter({ - + {searchResult.has_clip && ( diff --git a/web/src/components/filter/SearchFilterGroup.tsx b/web/src/components/filter/SearchFilterGroup.tsx index 5fe301f19..ef816bb9f 100644 --- a/web/src/components/filter/SearchFilterGroup.tsx +++ b/web/src/components/filter/SearchFilterGroup.tsx @@ -253,7 +253,11 @@ function GeneralFilterButton({ { if (!open) { @@ -284,7 +288,7 @@ export function GeneralFilterContent({ }: GeneralFilterContentProps) { return ( <> -
+