mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-14 16:01:13 +03:00
remove modal on popovers
This commit is contained in:
parent
047ea95b83
commit
f843d3e549
@ -322,7 +322,7 @@ export default function Step1NameAndDefine({
|
|||||||
<FormLabel className="text-primary-variant">
|
<FormLabel className="text-primary-variant">
|
||||||
{t("wizard.step1.classificationType")}
|
{t("wizard.step1.classificationType")}
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
@ -405,7 +405,7 @@ export default function Step1NameAndDefine({
|
|||||||
? t("wizard.step1.states")
|
? t("wizard.step1.states")
|
||||||
: t("wizard.step1.classes")}
|
: t("wizard.step1.classes")}
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
||||||
<LuInfo className="size-3" />
|
<LuInfo className="size-3" />
|
||||||
|
|||||||
@ -238,11 +238,7 @@ export default function Step2StateArea({
|
|||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<h3 className="text-sm font-medium">{t("wizard.step2.cameras")}</h3>
|
<h3 className="text-sm font-medium">{t("wizard.step2.cameras")}</h3>
|
||||||
{availableCameras.length > 0 ? (
|
{availableCameras.length > 0 ? (
|
||||||
<Popover
|
<Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen}>
|
||||||
open={isPopoverOpen}
|
|
||||||
onOpenChange={setIsPopoverOpen}
|
|
||||||
modal={true}
|
|
||||||
>
|
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@ -241,7 +241,7 @@ function AnnotationSettings({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="ml-2">
|
<div className="ml-2">
|
||||||
<Overlay modal={isDesktop} open={open} onOpenChange={handleOpenChange}>
|
<Overlay open={open} onOpenChange={handleOpenChange}>
|
||||||
<Trigger asChild>
|
<Trigger asChild>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@ -377,7 +377,7 @@ export default function Step1NameCamera({
|
|||||||
);
|
);
|
||||||
return selectedBrand &&
|
return selectedBrand &&
|
||||||
selectedBrand.value != "other" ? (
|
selectedBrand.value != "other" ? (
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|||||||
@ -597,7 +597,7 @@ export default function Step3StreamConfig({
|
|||||||
<Label className="text-sm font-medium text-primary-variant">
|
<Label className="text-sm font-medium text-primary-variant">
|
||||||
{t("cameraWizard.step3.roles")}
|
{t("cameraWizard.step3.roles")}
|
||||||
</Label>
|
</Label>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
||||||
<LuInfo className="size-3" />
|
<LuInfo className="size-3" />
|
||||||
@ -667,7 +667,7 @@ export default function Step3StreamConfig({
|
|||||||
<Label className="text-sm font-medium text-primary-variant">
|
<Label className="text-sm font-medium text-primary-variant">
|
||||||
{t("cameraWizard.step3.featuresTitle")}
|
{t("cameraWizard.step3.featuresTitle")}
|
||||||
</Label>
|
</Label>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
<Button variant="ghost" size="sm" className="h-4 w-4 p-0">
|
||||||
<LuInfo className="size-3" />
|
<LuInfo className="size-3" />
|
||||||
|
|||||||
@ -1554,7 +1554,7 @@ function FrigateCameraFeatures({
|
|||||||
ns: "components/dialog",
|
ns: "components/dialog",
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<div className="cursor-pointer p-0">
|
<div className="cursor-pointer p-0">
|
||||||
<LuInfo className="size-4" />
|
<LuInfo className="size-4" />
|
||||||
@ -1641,7 +1641,7 @@ function FrigateCameraFeatures({
|
|||||||
<>
|
<>
|
||||||
<LuX className="size-4 text-danger" />
|
<LuX className="size-4 text-danger" />
|
||||||
<div>{t("stream.audio.unavailable")}</div>
|
<div>{t("stream.audio.unavailable")}</div>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<div className="cursor-pointer p-0">
|
<div className="cursor-pointer p-0">
|
||||||
<LuInfo className="size-4" />
|
<LuInfo className="size-4" />
|
||||||
@ -1685,7 +1685,7 @@ function FrigateCameraFeatures({
|
|||||||
<>
|
<>
|
||||||
<LuX className="size-4 text-danger" />
|
<LuX className="size-4 text-danger" />
|
||||||
<div>{t("stream.twoWayTalk.unavailable")}</div>
|
<div>{t("stream.twoWayTalk.unavailable")}</div>
|
||||||
<Popover modal={true}>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<div className="cursor-pointer p-0">
|
<div className="cursor-pointer p-0">
|
||||||
<LuInfo className="size-4" />
|
<LuInfo className="size-4" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user