mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
Add scrollarea to search filter buttons when screen is between breakpoints
This commit is contained in:
parent
61a4a4bc2f
commit
ce4896e2f8
@ -22,6 +22,7 @@ import useKeyboardListener, {
|
|||||||
} from "@/hooks/use-keyboard-listener";
|
} from "@/hooks/use-keyboard-listener";
|
||||||
import scrollIntoView from "scroll-into-view-if-needed";
|
import scrollIntoView from "scroll-into-view-if-needed";
|
||||||
import InputWithTags from "@/components/input/InputWithTags";
|
import InputWithTags from "@/components/input/InputWithTags";
|
||||||
|
import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
|
||||||
|
|
||||||
type SearchViewProps = {
|
type SearchViewProps = {
|
||||||
search: string;
|
search: string;
|
||||||
@ -276,13 +277,18 @@ export default function SearchView({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{hasExistingSearch && (
|
{hasExistingSearch && (
|
||||||
<SearchFilterGroup
|
<ScrollArea className="w-full whitespace-nowrap lg:ml-[35%]">
|
||||||
className={cn(
|
<div className="flex flex-row">
|
||||||
"w-full justify-between md:justify-start lg:justify-end",
|
<SearchFilterGroup
|
||||||
)}
|
className={cn(
|
||||||
filter={searchFilter}
|
"w-full justify-between md:justify-start lg:justify-end",
|
||||||
onUpdateFilter={onUpdateFilter}
|
)}
|
||||||
/>
|
filter={searchFilter}
|
||||||
|
onUpdateFilter={onUpdateFilter}
|
||||||
|
/>
|
||||||
|
<ScrollBar orientation="horizontal" className="h-0" />
|
||||||
|
</div>
|
||||||
|
</ScrollArea>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user