Skip to content

The open-source app everyone uses to manage agents at work

fix: remove "None" text from empty goals, add padding to + goal button

Dotta10e37dd7e53f
diff --git a/ui/src/components/ProjectProperties.tsx b/ui/src/components/ProjectProperties.tsx
index 38dc1a3383..3f6f6e40d0 100644
--- a/ui/src/components/ProjectProperties.tsx
+++ b/ui/src/components/ProjectProperties.tsx
@@ -420,9 +420,7 @@ export function ProjectProperties({ project, onUpdate, onFieldUpdate, getFieldSa
alignStart
valueClassName="space-y-2"
>
- {linkedGoals.length === 0 ? (
- <span className="text-sm text-muted-foreground">None</span>
- ) : (
+ {linkedGoals.length > 0 && (
<div className="flex flex-wrap gap-1.5">
{linkedGoals.map((goal) => (
<span
@@ -452,7 +450,7 @@ export function ProjectProperties({ project, onUpdate, onFieldUpdate, getFieldSa
<Button
variant="outline"
size="xs"
- className="h-6 w-fit px-2"
+ className={cn("h-6 w-fit px-2", linkedGoals.length > 0 && "ml-1")}
disabled={availableGoals.length === 0}
>
<Plus className="h-3 w-3 mr-1" />