diff --git a/src/components/Extensibility/components-form/SimpleList.js b/src/components/Extensibility/components-form/SimpleList.js index 6217afce4b..d6889e8e3f 100644 --- a/src/components/Extensibility/components-form/SimpleList.js +++ b/src/components/Extensibility/components-form/SimpleList.js @@ -1,6 +1,6 @@ import { mapValues } from 'lodash'; import { PluginStack, useUIStore } from '@ui-schema/ui-schema'; -import { Button, Icon } from '@ui5/webcomponents-react'; +import { Button, Icon, FlexBox } from '@ui5/webcomponents-react'; import { FormLabel } from 'fundamental-react'; import classnames from 'classnames'; import { useTranslation } from 'react-i18next'; @@ -49,11 +49,7 @@ export function SimpleList({ }); }; - const listClasses = classnames([ - 'text-array-input__list', - 'fd-col', - 'fd-col-md--12', - ]); + const listClasses = classnames(['text-array-input__list', 'fd-col-md--12']); const isLast = index => index === listSize; const itemsSchema = schema.get('items'); @@ -73,37 +69,39 @@ export function SimpleList({ nestingLevel={nestingLevel} {...props} > -
-
+ +
-
+
    {isObject && ( -
  • -
    - titleRenderer), - custom: { - ...mapValues(widgets.custom, () => titleRenderer), - Null: () => '', - }, - }} - parentSchema={schema} - storeKeys={storeKeys.push(0)} - level={level + 1} - nestingLevel={nestingLevel + 1} - schemaKeys={schemaKeys?.push('items')} - /> -
    -
    - -
    +
  • + +
    + titleRenderer), + custom: { + ...mapValues(widgets.custom, () => titleRenderer), + Null: () => '', + }, + }} + parentSchema={schema} + storeKeys={storeKeys.push(0)} + level={level + 1} + nestingLevel={nestingLevel + 1} + schemaKeys={schemaKeys?.push('items')} + /> +
    +
    + +
    +
  • )} {Array(listSize + 1) @@ -113,33 +111,35 @@ export function SimpleList({ return ( <> -
  • -
    - -
    -
    - - {!isLast(index) && ( -
    +
  • + +
    + +
    +
    + + {!isLast(index) && ( +
    +
  • {isLast(index) && inputInfo && (

-
+
{tooltipContent && ( )}
-
+ ); } diff --git a/src/shared/ResourceForm/components/FormField.scss b/src/shared/ResourceForm/components/FormField.scss index e5941328a5..7a1c038582 100644 --- a/src/shared/ResourceForm/components/FormField.scss +++ b/src/shared/ResourceForm/components/FormField.scss @@ -14,8 +14,4 @@ .form-field__label { padding: 12px 0 !important; } - - .action-button { - padding: 8px 0 !important; - } } diff --git a/src/shared/ResourceForm/components/ResourceForm.scss b/src/shared/ResourceForm/components/ResourceForm.scss index 071d2d7dd6..afb777ad6f 100644 --- a/src/shared/ResourceForm/components/ResourceForm.scss +++ b/src/shared/ResourceForm/components/ResourceForm.scss @@ -40,7 +40,8 @@ margin-top: -0.5rem; } - .form-field { + .form-field, + .simple-list { gap: 10px; } diff --git a/src/shared/ResourceForm/fields/MultiInput.js b/src/shared/ResourceForm/fields/MultiInput.js index 70ad5a1705..180282e066 100644 --- a/src/shared/ResourceForm/fields/MultiInput.js +++ b/src/shared/ResourceForm/fields/MultiInput.js @@ -1,5 +1,5 @@ -import React, { useEffect, useRef, useState, createRef } from 'react'; -import { Button, Icon } from '@ui5/webcomponents-react'; +import { useEffect, useRef, useState, createRef } from 'react'; +import { Button, Icon, FlexBox } from '@ui5/webcomponents-react'; import classnames from 'classnames'; import { useTranslation } from 'react-i18next'; @@ -100,7 +100,6 @@ export function MultiInput({ const listClasses = classnames({ 'text-array-input__list': true, - 'fd-col': true, 'fd-col-md--8': !fullWidth && (title || label), 'fd-col-md--12': fullWidth && !(title || label), }); @@ -165,9 +164,9 @@ export function MultiInput({ tooltipContent={sectionTooltipContent} {...props} > -
+ {!fullWidth && (title || label) && ( -
+
{internalValue.map((entry, index) => (
  • -
    -
    -
    + +
    + {noEdit && !isLast(index) && ( {entry} )} @@ -190,9 +189,9 @@ export function MultiInput({ (input, inputIndex) => inputComponents[index][inputIndex], )} -
    +
    -
    +
    {!isLast(index) && (
    +
  • ))} {inputInfo && ( @@ -216,7 +215,7 @@ export function MultiInput({

    )} -
    +
    {tooltipContent && ( )}
    -
    + ); }