Skip to content

Commit 093e985

Browse files
committed
Moving edit button
1 parent b8ad1ab commit 093e985

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

  • frontend/src/components/pages/rp-connect/pipeline

frontend/src/components/pages/rp-connect/pipeline/index.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -565,18 +565,13 @@ const EditSummary = ({ form, onEdit }: { form: UseFormReturn<PipelineFormValues>
565565
const computeUnits = useWatch({ control: form.control, name: 'computeUnits' });
566566
return (
567567
<div className="flex flex-col gap-5 rounded-lg border bg-muted/20 px-6 py-5">
568-
<div className="flex items-start justify-between gap-4">
569-
<div className="flex min-w-0 flex-col gap-1">
570-
<Text className="text-muted-foreground" variant="label">
571-
Name
572-
</Text>
573-
<Heading className="truncate" level={2} title={name}>
574-
{name || 'Untitled pipeline'}
575-
</Heading>
576-
</div>
577-
<Button className="shrink-0" icon={<Settings />} onClick={onEdit} size="sm" variant="outline">
578-
Edit settings
579-
</Button>
568+
<div className="flex min-w-0 flex-col gap-1">
569+
<Text className="text-muted-foreground" variant="label">
570+
Name
571+
</Text>
572+
<Heading className="truncate" level={2} title={name}>
573+
{name || 'Untitled pipeline'}
574+
</Heading>
580575
</div>
581576
<Separator variant="subtle" />
582577
<div className="grid grid-cols-1 gap-x-10 gap-y-4 sm:grid-cols-3">
@@ -594,6 +589,13 @@ const EditSummary = ({ form, onEdit }: { form: UseFormReturn<PipelineFormValues>
594589
<Text className="text-muted-foreground text-sm italic">No description</Text>
595590
)}
596591
</div>
592+
<Separator variant="subtle" />
593+
{/* Edit action at the card footer, away from the header's Save button. */}
594+
<div className="flex items-center justify-end">
595+
<Button icon={<Settings />} onClick={onEdit} size="sm" variant="outline">
596+
Edit settings
597+
</Button>
598+
</div>
597599
</div>
598600
);
599601
};

0 commit comments

Comments
 (0)