AddEnvironmentVariableRow padding (#71)

This commit is contained in:
Vivian Phung 2024-05-16 20:29:35 -04:00 committed by GitHub
parent a69dd71117
commit c72cbce615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 12 deletions

View File

@ -19,7 +19,7 @@ const AddEnvironmentVariableRow = ({
isDeleteDisabled,
}: AddEnvironmentVariableRowProps) => {
return (
<div className="flex py-4 self-stretch">
<div className="flex gap-2 py-1 self-stretch">
<Input
size="md"
{...register(`variables.${index}.key`, {
@ -34,16 +34,9 @@ const AddEnvironmentVariableRow = ({
required: 'Value field cannot be empty',
})}
/>
<div className="self-end">
<Button
size="md"
iconOnly
onClick={onDelete}
disabled={isDeleteDisabled}
>
<TrashIcon />
</Button>
</div>
<Button size="md" iconOnly onClick={onDelete} disabled={isDeleteDisabled}>
<TrashIcon />
</Button>
</div>
);
};

View File

@ -86,7 +86,7 @@ const EditEnvironmentVariableRow = ({
return (
<>
<div className="flex gap-1 p-2">
<div className="flex gap-1">
<div>
<Typography variant="small">Key</Typography>
<Input disabled={!edit} {...register(`key`)} />