Skip to content

NVR with realtime local object detection for IP cameras

Search UI tweaks (#13903)

Josh Hawkinsfe57f7f489ce
diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx
index c21dba7336..802e4acaad 100644
--- a/web/src/components/input/InputWithTags.tsx
+++ b/web/src/components/input/InputWithTags.tsx
@@ -445,7 +445,7 @@ export default function InputWithTags({
onFocus={handleInputFocus}
onBlur={handleInputBlur}
onKeyDown={handleInputKeyDown}
- className="text-md h-10 pr-24"
+ className="text-md h-9 pr-24"
placeholder="Search..."
/>
<div className="absolute right-3 top-0 flex h-full flex-row items-center justify-center gap-5">
diff --git a/web/src/views/search/SearchView.tsx b/web/src/views/search/SearchView.tsx
index 56257ee3ec..06ad73b3e4 100644
--- a/web/src/views/search/SearchView.tsx
+++ b/web/src/views/search/SearchView.tsx
@@ -22,6 +22,7 @@ import useKeyboardListener, {
} from "@/hooks/use-keyboard-listener";
import scrollIntoView from "scroll-into-view-if-needed";
import InputWithTags from "@/components/input/InputWithTags";
+import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
type SearchViewProps = {
search: string;
@@ -276,13 +277,18 @@ export default function SearchView({
)}
{hasExistingSearch && (
- <SearchFilterGroup
- className={cn(
- "w-full justify-between md:justify-start lg:justify-end",
- )}
- filter={searchFilter}
- onUpdateFilter={onUpdateFilter}
- />
+ <ScrollArea className="w-full whitespace-nowrap lg:ml-[35%]">
+ <div className="flex flex-row">
+ <SearchFilterGroup
+ className={cn(
+ "w-full justify-between md:justify-start lg:justify-end",
+ )}
+ filter={searchFilter}
+ onUpdateFilter={onUpdateFilter}
+ />
+ <ScrollBar orientation="horizontal" className="h-0" />
+ </div>
+ </ScrollArea>
)}
</div>