File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/JsonSchemaEditor/SchemaItem Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -702,10 +702,11 @@ function SchemaItem(props: SchemaItemProps) {
702
702
< Form . List name = "enums" >
703
703
{ ( fields , { add, remove } ) => (
704
704
< >
705
- < Row >
705
+ < Row gutter = { 6 } >
706
706
{ fields . map ( ( { key, name, ...restField } ) => (
707
707
< Col span = { 12 } key = { key } >
708
708
< Row
709
+ gutter = { 2 }
709
710
justify = { 'start' }
710
711
align = { 'middle' }
711
712
style = { { marginBottom : 6 } }
@@ -728,15 +729,21 @@ function SchemaItem(props: SchemaItemProps) {
728
729
) }
729
730
</ Form . Item >
730
731
</ Col >
731
- < Col flex = { '36px' } style = { { paddingLeft : 7 } } >
732
- < DeleteOutlined onClick = { ( ) => remove ( name ) } />
732
+ < Col flex = { '24px' } >
733
+ < Button
734
+ icon = { < DeleteOutlined /> }
735
+ size = { 'small' }
736
+ type = { 'text' }
737
+ danger = { true }
738
+ onClick = { ( ) => remove ( name ) }
739
+ />
733
740
</ Col >
734
741
</ Row >
735
742
</ Col >
736
743
) ) }
737
744
</ Row >
738
745
< Row >
739
- < Col span = { 12 } >
746
+ < Col span = { 6 } >
740
747
< Form . Item noStyle >
741
748
< Button
742
749
onClick = { ( ) => add ( ) }
You can’t perform that action at this time.
0 commit comments