@micromag/screen-gallery 0.3.193 → 0.3.196

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
@@ -427,8 +427,8 @@ var GalleryScreen = function GalleryScreen(_ref) {
427
427
  }, /*#__PURE__*/React.createElement("div", {
428
428
  className: styles.content,
429
429
  style: {
430
- paddingTop: !isPreview ? viewerTopHeight : null,
431
- paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (!isPreview ? viewerBottomHeight : 0)
430
+ paddingTop: current && !isPreview ? viewerTopHeight : null,
431
+ paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
432
432
  },
433
433
  ref: contentRef
434
434
  }, /*#__PURE__*/React.createElement(Grid, Object.assign({
package/lib/index.js CHANGED
@@ -449,8 +449,8 @@ var GalleryScreen = function GalleryScreen(_ref) {
449
449
  }, /*#__PURE__*/React__default["default"].createElement("div", {
450
450
  className: styles.content,
451
451
  style: {
452
- paddingTop: !isPreview ? viewerTopHeight : null,
453
- paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (!isPreview ? viewerBottomHeight : 0)
452
+ paddingTop: current && !isPreview ? viewerTopHeight : null,
453
+ paddingBottom: (hasCallToAction ? callToActionHeight : 0) + (current && !isPreview ? viewerBottomHeight : 0)
454
454
  },
455
455
  ref: contentRef
456
456
  }, /*#__PURE__*/React__default["default"].createElement(Grid__default["default"], Object.assign({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-gallery",
3
- "version": "0.3.193",
3
+ "version": "0.3.196",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,15 +49,15 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.190",
53
- "@micromag/element-background": "^0.3.193",
54
- "@micromag/element-call-to-action": "^0.3.190",
55
- "@micromag/element-container": "^0.3.190",
56
- "@micromag/element-grid": "^0.3.190",
57
- "@micromag/element-layout": "^0.3.190",
58
- "@micromag/element-text": "^0.3.190",
59
- "@micromag/element-visual": "^0.3.193",
60
- "@micromag/transforms": "^0.3.190",
52
+ "@micromag/core": "^0.3.196",
53
+ "@micromag/element-background": "^0.3.196",
54
+ "@micromag/element-call-to-action": "^0.3.196",
55
+ "@micromag/element-container": "^0.3.196",
56
+ "@micromag/element-grid": "^0.3.196",
57
+ "@micromag/element-layout": "^0.3.196",
58
+ "@micromag/element-text": "^0.3.196",
59
+ "@micromag/element-visual": "^0.3.196",
60
+ "@micromag/transforms": "^0.3.196",
61
61
  "classnames": "^2.2.6",
62
62
  "lodash": "^4.17.21",
63
63
  "prop-types": "^15.7.2",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "baa77c4946627fec9822955390e547ad8639f07f"
70
+ "gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
71
71
  }