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:
parent
b28f635fb2
commit
21fbd37bfb
8 changed files with 65 additions and 39 deletions
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue