mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-03 12:07:40 +03:00
improve spacing of face selection in mobile drawer
This commit is contained in:
parent
2a8b62acb1
commit
318b525994
@ -53,7 +53,13 @@ export default function FaceSelectionDialog({
|
|||||||
const Selector = isDesktop ? DropdownMenu : Drawer;
|
const Selector = isDesktop ? DropdownMenu : Drawer;
|
||||||
const SelectorTrigger = isDesktop ? DropdownMenuTrigger : DrawerTrigger;
|
const SelectorTrigger = isDesktop ? DropdownMenuTrigger : DrawerTrigger;
|
||||||
const SelectorContent = isDesktop ? DropdownMenuContent : DrawerContent;
|
const SelectorContent = isDesktop ? DropdownMenuContent : DrawerContent;
|
||||||
const SelectorItem = isDesktop ? DropdownMenuItem : DrawerClose;
|
const SelectorItem = isDesktop
|
||||||
|
? DropdownMenuItem
|
||||||
|
: (props: React.HTMLAttributes<HTMLDivElement>) => (
|
||||||
|
<DrawerClose asChild>
|
||||||
|
<div {...props} className={cn(props.className, "my-2")} />
|
||||||
|
</DrawerClose>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={className ?? ""}>
|
<div className={className ?? ""}>
|
||||||
@ -100,7 +106,7 @@ export default function FaceSelectionDialog({
|
|||||||
{faceNames.map((faceName) => (
|
{faceNames.map((faceName) => (
|
||||||
<SelectorItem
|
<SelectorItem
|
||||||
key={faceName}
|
key={faceName}
|
||||||
className="flex cursor-pointer gap-2 smart-capitalize"
|
className="flex cursor-pointer gap-3 smart-capitalize"
|
||||||
onClick={() => onTrainAttempt(faceName)}
|
onClick={() => onTrainAttempt(faceName)}
|
||||||
>
|
>
|
||||||
<LuScanFace />
|
<LuScanFace />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user