@micromag/media-gallery 0.3.323 → 0.3.325

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.
package/es/index.js CHANGED
@@ -1311,7 +1311,7 @@ function Navbar(_ref) {
1311
1311
  }, /*#__PURE__*/React.createElement("div", {
1312
1312
  className: classNames([styles$1.inner])
1313
1313
  }, media === null ? /*#__PURE__*/React.createElement("div", {
1314
- className: classNames(['list-group-item rounded w-100 mw-100 navbar-text d-flex align-items-center justify-content-between', {
1314
+ className: classNames(['list-group-item rounded w-100 mw-100 navbar-text d-flex align-items-center justify-content-between mb-2', {
1315
1315
  'border border-dark py-1 px-1': selectedMedia !== null
1316
1316
  }])
1317
1317
  }, selectedMedia !== null ? /*#__PURE__*/React.createElement(Button, {
@@ -1361,8 +1361,8 @@ function Navbar(_ref) {
1361
1361
  "value": "Remove"
1362
1362
  }]
1363
1363
  })
1364
- })) : null, !withoutSource && media === null ? /*#__PURE__*/React.createElement("div", {
1365
- className: "mt-1 py-2 d-flex w-100 align-items-center flex-nowrap"
1364
+ })) : null, !withoutSource && media === null && sources !== null && sources.length > 1 ? /*#__PURE__*/React.createElement("div", {
1365
+ className: "mb-2 d-flex w-100 align-items-center flex-nowrap"
1366
1366
  }, /*#__PURE__*/React.createElement(DropdownSection, {
1367
1367
  items: sources,
1368
1368
  value: filters.source || null,
package/lib/index.js CHANGED
@@ -1327,7 +1327,7 @@ function Navbar(_ref) {
1327
1327
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1328
1328
  className: classNames__default["default"]([styles$1.inner])
1329
1329
  }, media === null ? /*#__PURE__*/React__default["default"].createElement("div", {
1330
- className: classNames__default["default"](['list-group-item rounded w-100 mw-100 navbar-text d-flex align-items-center justify-content-between', {
1330
+ className: classNames__default["default"](['list-group-item rounded w-100 mw-100 navbar-text d-flex align-items-center justify-content-between mb-2', {
1331
1331
  'border border-dark py-1 px-1': selectedMedia !== null
1332
1332
  }])
1333
1333
  }, selectedMedia !== null ? /*#__PURE__*/React__default["default"].createElement(components.Button, {
@@ -1377,8 +1377,8 @@ function Navbar(_ref) {
1377
1377
  "value": "Remove"
1378
1378
  }]
1379
1379
  })
1380
- })) : null, !withoutSource && media === null ? /*#__PURE__*/React__default["default"].createElement("div", {
1381
- className: "mt-1 py-2 d-flex w-100 align-items-center flex-nowrap"
1380
+ })) : null, !withoutSource && media === null && sources !== null && sources.length > 1 ? /*#__PURE__*/React__default["default"].createElement("div", {
1381
+ className: "mb-2 d-flex w-100 align-items-center flex-nowrap"
1382
1382
  }, /*#__PURE__*/React__default["default"].createElement(DropdownSection, {
1383
1383
  items: sources,
1384
1384
  value: filters.source || null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/media-gallery",
3
- "version": "0.3.323",
3
+ "version": "0.3.325",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -59,8 +59,8 @@
59
59
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
60
60
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
61
61
  "@fortawesome/react-fontawesome": "^0.1.13",
62
- "@micromag/core": "^0.3.323",
63
- "@micromag/data": "^0.3.323",
62
+ "@micromag/core": "^0.3.325",
63
+ "@micromag/data": "^0.3.325",
64
64
  "bootstrap": "5.2.0-beta1",
65
65
  "change-case": "^4.1.2",
66
66
  "classnames": "^2.2.6",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "98f75cb2e96dad19a5e6e385be28d223847fcabf"
76
+ "gitHead": "ce577e420f569aa7589ab2ae76eff2d99778ce86"
77
77
  }