mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 04:09:00 +03:00
remove note
This commit is contained in:
@@ -170,7 +170,7 @@
|
|||||||
"naturalAspectLayout": {
|
"naturalAspectLayout": {
|
||||||
"label": "Use Natural Aspect Ratios",
|
"label": "Use Natural Aspect Ratios",
|
||||||
"desc": "On camera group live view dashboards, size each tile to its camera's own natural aspect ratio. When disabled, cameras are snapped to a standard wide, landscape, or tall tile shape.",
|
"desc": "On camera group live view dashboards, size each tile to its camera's own natural aspect ratio. When disabled, cameras are snapped to a standard wide, landscape, or tall tile shape.",
|
||||||
"descNote": "Toggling this setting on or off will clear the layout for all camera group live dashboards."
|
"descNote": "Toggling this setting on or off will clear the stored layout for all camera group live dashboards. Manual reconfiguration will be required."
|
||||||
},
|
},
|
||||||
"liveFallbackTimeout": {
|
"liveFallbackTimeout": {
|
||||||
"label": "Live Player Fallback Timeout",
|
"label": "Live Player Fallback Timeout",
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { Alert, AlertDescription } from "@/components/ui/alert";
|
|
||||||
import { LuInfo } from "react-icons/lu";
|
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
import {
|
import {
|
||||||
@@ -71,7 +69,6 @@ type SwitchSettingRowProps = {
|
|||||||
id: string;
|
id: string;
|
||||||
label: string;
|
label: string;
|
||||||
description: string;
|
description: string;
|
||||||
note?: string;
|
|
||||||
checked: boolean | undefined;
|
checked: boolean | undefined;
|
||||||
onCheckedChange: (checked: boolean | undefined) => void;
|
onCheckedChange: (checked: boolean | undefined) => void;
|
||||||
};
|
};
|
||||||
@@ -80,7 +77,6 @@ function SwitchSettingRow({
|
|||||||
id,
|
id,
|
||||||
label,
|
label,
|
||||||
description,
|
description,
|
||||||
note,
|
|
||||||
checked,
|
checked,
|
||||||
onCheckedChange,
|
onCheckedChange,
|
||||||
}: SwitchSettingRowProps) {
|
}: SwitchSettingRowProps) {
|
||||||
@@ -100,15 +96,6 @@ function SwitchSettingRow({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p className={DESCRIPTION_CLASS_NAME}>{description}</p>
|
<p className={DESCRIPTION_CLASS_NAME}>{description}</p>
|
||||||
{note && (
|
|
||||||
<Alert
|
|
||||||
variant="info"
|
|
||||||
className="flex items-center gap-2 p-2 [&>svg+div]:translate-y-0 [&>svg]:static [&>svg~*]:pl-0"
|
|
||||||
>
|
|
||||||
<LuInfo className="size-4 shrink-0" />
|
|
||||||
<AlertDescription className="text-xs">{note}</AlertDescription>
|
|
||||||
</Alert>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="hidden w-full md:flex md:max-w-2xl md:items-center">
|
<div className="hidden w-full md:flex md:max-w-2xl md:items-center">
|
||||||
<Switch
|
<Switch
|
||||||
@@ -448,7 +435,6 @@ export default function UiSettingsView() {
|
|||||||
id: "natural-aspect",
|
id: "natural-aspect",
|
||||||
label: t("general.liveDashboard.naturalAspectLayout.label"),
|
label: t("general.liveDashboard.naturalAspectLayout.label"),
|
||||||
description: t("general.liveDashboard.naturalAspectLayout.desc"),
|
description: t("general.liveDashboard.naturalAspectLayout.desc"),
|
||||||
note: t("general.liveDashboard.naturalAspectLayout.descNote"),
|
|
||||||
checked: naturalAspect,
|
checked: naturalAspect,
|
||||||
onCheckedChange: () => setPendingConfirm("naturalAspect"),
|
onCheckedChange: () => setPendingConfirm("naturalAspect"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user