mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-10 10:33:11 +03:00
spacing and language tweaks
This commit is contained in:
parent
de5c26dd0b
commit
5841c827f7
@ -1245,14 +1245,14 @@
|
||||
"title": "Object Settings"
|
||||
},
|
||||
"objectLabels": {
|
||||
"summary": "Selected {{count}}",
|
||||
"summary": "{{count}} selected",
|
||||
"empty": "No object labels available"
|
||||
},
|
||||
"filters": {
|
||||
"objectFieldLabel": "{{field}} for {{label}}"
|
||||
},
|
||||
"zoneNames": {
|
||||
"summary": "Selected {{count}}",
|
||||
"summary": "{{count}} selected",
|
||||
"empty": "No zones available"
|
||||
},
|
||||
"review": {
|
||||
|
||||
@ -154,7 +154,7 @@ export default function CameraReviewClassification({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="mb-4 space-y-6">
|
||||
<Heading as="h4" className="my-2">
|
||||
<Trans ns="views/settings">
|
||||
cameraReview.reviewClassification.title
|
||||
|
||||
@ -167,7 +167,7 @@ export function ConfigSection({
|
||||
onSave,
|
||||
requiresRestart = true,
|
||||
collapsible = false,
|
||||
defaultCollapsed = false,
|
||||
defaultCollapsed = true,
|
||||
showTitle,
|
||||
onStatusChange,
|
||||
pendingDataBySection,
|
||||
|
||||
@ -66,7 +66,7 @@ export function ObjectFieldTemplate(props: ObjectFieldTemplateProps) {
|
||||
// Check if this is a root-level object
|
||||
const isRoot = registry?.rootSchema === schema;
|
||||
|
||||
const [isOpen, setIsOpen] = useState(true);
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const isCameraLevel = formContext?.level === "camera";
|
||||
const effectiveNamespace = isCameraLevel ? "config/cameras" : "config/global";
|
||||
@ -276,7 +276,10 @@ export function ObjectFieldTemplate(props: ObjectFieldTemplateProps) {
|
||||
{advancedProps.length > 0 && (
|
||||
<Collapsible open={showAdvanced} onOpenChange={setShowAdvanced}>
|
||||
<CollapsibleTrigger asChild>
|
||||
<Button variant="ghost" className="w-full justify-start gap-2">
|
||||
<Button
|
||||
variant="ghost"
|
||||
className="w-full justify-start gap-2 pl-0"
|
||||
>
|
||||
{showAdvanced ? (
|
||||
<LuChevronDown className="h-4 w-4" />
|
||||
) : (
|
||||
@ -328,7 +331,7 @@ export function ObjectFieldTemplate(props: ObjectFieldTemplateProps) {
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
className="w-full justify-start gap-2"
|
||||
className="w-full justify-start gap-2 pl-0"
|
||||
>
|
||||
{showAdvanced ? (
|
||||
<LuChevronDown className="h-4 w-4" />
|
||||
|
||||
@ -148,10 +148,10 @@ export function SwitchesWidget(props: WidgetProps) {
|
||||
const summary = t
|
||||
? t(`configForm.${i18nKey}.summary`, {
|
||||
ns: namespace,
|
||||
defaultValue: "Selected {{count}}",
|
||||
defaultValue: "{{count}} selected",
|
||||
count: selectedEntities.length,
|
||||
})
|
||||
: `Selected ${selectedEntities.length}`;
|
||||
: `${selectedEntities.length} selected`;
|
||||
|
||||
const emptyMessage = t
|
||||
? t(`configForm.${i18nKey}.empty`, {
|
||||
@ -167,7 +167,7 @@ export function SwitchesWidget(props: WidgetProps) {
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
className="w-full justify-start gap-2"
|
||||
className="w-full justify-start gap-2 pl-0"
|
||||
disabled={disabled || readonly}
|
||||
>
|
||||
{isOpen ? (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user