Skip to content

Commit

Permalink
refactor(form-builder): increase padding and improve button labels of…
Browse files Browse the repository at this point in the history
… ArrayInput
  • Loading branch information
mariuslundgard authored and bjoerge committed Apr 8, 2021
1 parent cb88f61 commit c855506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export class ArrayInput extends React.Component<Props> {
</Alert>
)}

<Stack space={1}>
<Stack space={2}>
<List onSortEnd={this.handleSortEnd} isSortable={isSortable} isGrid={isGrid}>
{(value || []).map((item, index) => {
const isChildMarker = (marker: Marker) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export default function ArrayFunctions(props: ArrayFunctionsProps) {
}

return (
<Grid autoCols="auto" gap={1}>
<Grid autoCols="auto" gap={2}>
{type.of.length === 1 ? (
<Button mode="ghost" text="Add" icon={AddIcon} onClick={handleAddBtnClick} />
<Button mode="ghost" text="Add item" icon={AddIcon} onClick={handleAddBtnClick} />
) : (
<MenuButton
id={menuButtonId || ''}
button={<Button mode="ghost" text="Add…" icon={AddIcon} />}
button={<Button mode="ghost" text="Add item…" icon={AddIcon} />}
menu={
<Menu>
{type.of.map((memberDef) => {
Expand Down

0 comments on commit c855506

Please sign in to comment.