1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(ui): EE-3718 css portainer environments edit (#7318)

This commit is contained in:
congs 2022-08-03 10:19:28 +12:00 committed by GitHub
parent b28f635fb2
commit 21fbd37bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 65 additions and 39 deletions

View file

@ -107,7 +107,11 @@ export function InputList<T = DefaultType>({
return (
<div
key={key}
className={clsx(styles.itemLine, { [styles.hasError]: !!error })}
className={clsx(
styles.itemLine,
{ [styles.hasError]: !!error },
'vertical-center'
)}
>
{Item ? (
<Item
@ -128,7 +132,7 @@ export function InputList<T = DefaultType>({
{!readOnly && movable && (
<>
<Button
size="small"
size="medium"
disabled={disabled || index === 0}
onClick={() => handleMoveUp(index)}
className="vertical-center btn-only-icon"
@ -136,7 +140,7 @@ export function InputList<T = DefaultType>({
<Icon icon="arrow-up" feather />
</Button>
<Button
size="small"
size="medium"
type="button"
disabled={disabled || index === value.length - 1}
onClick={() => handleMoveDown(index)}
@ -149,7 +153,7 @@ export function InputList<T = DefaultType>({
{!readOnly && (
<Button
color="dangerlight"
size="small"
size="medium"
onClick={() => handleRemoveItem(key, item)}
className="vertical-center btn-only-icon"
>