File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import {
16
16
} from "../../utils" ;
17
17
import FileWidget from "./../widgets/FileWidget" ;
18
18
19
+ const btnStyle = { flex : 1 , paddingLeft : 6 , paddingRight : 6 , fontWeight : "bold" } ;
19
20
20
21
function ArrayFieldTitle ( { TitleField, idSchema, title, required} ) {
21
22
if ( ! title ) {
@@ -345,7 +346,6 @@ class ArrayField extends Component {
345
346
346
347
const hasToolbar = removable || _canMoveUp || _canMoveDown ;
347
348
348
- const btnStyle = { flex : 1 , paddingLeft : 6 , paddingRight : 6 , fontWeight : "bold" } ;
349
349
350
350
return (
351
351
< div key = { index } className = "array-item" >
@@ -398,12 +398,16 @@ class ArrayField extends Component {
398
398
}
399
399
400
400
function AddButton ( { onClick, disabled} ) {
401
+ const plusStyle = { transform : 'scale(1.6)' , transformOrigin : '50% 70%' } ;
401
402
return (
402
403
< div className = "row" >
403
404
< p className = "col-xs-2 col-xs-offset-10 array-item-add text-right" >
404
405
< button type = "button" className = "btn btn-info col-xs-12"
406
+ style = { btnStyle }
405
407
tabIndex = "-1" onClick = { onClick }
406
- disabled = { disabled } style = { { fontWeight : "bold" } } > ➕</ button >
408
+ disabled = { disabled } >
409
+ < div style = { plusStyle } > +</ div >
410
+ </ button >
407
411
</ p >
408
412
</ div >
409
413
) ;
You can’t perform that action at this time.
0 commit comments