spacing and language tweaks

This commit is contained in:
Josh Hawkins
2026-02-27 09:40:21 -06:00
parent de5c26dd0b
commit 5841c827f7
5 changed files with 13 additions and 10 deletions
@@ -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 ? (