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

View File

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