forked from cerc-io/snowballtools-base
AddEnvironmentVariableRow padding (#71)
This commit is contained in:
parent
a69dd71117
commit
c72cbce615
@ -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>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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`)} />
|
||||||
|
Loading…
Reference in New Issue
Block a user