react-crud-mobile 1.0.893 → 1.0.894

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -432,17 +432,25 @@ function UIButton(props) {
432
432
  css.fontSize = 12;
433
433
  css.fontWeight = 400;
434
434
  }
435
- if (align === 'center') {
435
+ if (align === 'left') {
436
436
  css.justifyContent = 'flex-start';
437
+ css.padding = 10;
437
438
  }
438
439
  return css;
439
440
  };
440
441
  var extra = {};
441
442
  if (icon) {
442
443
  extra.button = {
443
- padding: 0,
444
- height: 40
444
+ height: 40,
445
+ paddingBottom: 0,
446
+ paddingTop: 0
445
447
  };
448
+ if (!label) {
449
+ extra.button = _extends({}, extra.button, {
450
+ paddingLeft: 0,
451
+ paddingRight: 0
452
+ });
453
+ }
446
454
  } else {
447
455
  extra.button = {
448
456
  height: 50
@@ -463,7 +471,7 @@ function UIButton(props) {
463
471
  if (size) {
464
472
  css = _extends({}, css, BUTTONS_SIZE[size]);
465
473
  }
466
- if (align === 'center') {
474
+ if (align === 'left') {
467
475
  css.justifyContent = 'flex-start';
468
476
  }
469
477
  return css;