@micromag/screen-slideshow 0.3.194 → 0.3.198

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
@@ -196,8 +196,8 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
196
196
  }, /*#__PURE__*/React.createElement("div", {
197
197
  className: styles.content,
198
198
  style: {
199
- paddingTop: !isPreview ? viewerTopHeight : null,
200
- paddingBottom: (hasCallToAction ? callToActionHeight - finalSpacing : 0) + (!isPreview ? viewerBottomHeight : 0)
199
+ paddingTop: current && !isPreview ? viewerTopHeight : null,
200
+ paddingBottom: (hasCallToAction ? callToActionHeight - finalSpacing : 0) + (current && !isPreview ? viewerBottomHeight : 0)
201
201
  }
202
202
  }, items, !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
203
203
  style: {
package/lib/index.js CHANGED
@@ -213,8 +213,8 @@ var SlideshowScreen = function SlideshowScreen(_ref) {
213
213
  }, /*#__PURE__*/React__default["default"].createElement("div", {
214
214
  className: styles.content,
215
215
  style: {
216
- paddingTop: !isPreview ? viewerTopHeight : null,
217
- paddingBottom: (hasCallToAction ? callToActionHeight - finalSpacing : 0) + (!isPreview ? viewerBottomHeight : 0)
216
+ paddingTop: current && !isPreview ? viewerTopHeight : null,
217
+ paddingBottom: (hasCallToAction ? callToActionHeight - finalSpacing : 0) + (current && !isPreview ? viewerBottomHeight : 0)
218
218
  }
219
219
  }, items, !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
220
220
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-slideshow",
3
- "version": "0.3.194",
3
+ "version": "0.3.198",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,14 +49,14 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.194",
53
- "@micromag/element-background": "^0.3.194",
54
- "@micromag/element-call-to-action": "^0.3.194",
55
- "@micromag/element-container": "^0.3.194",
56
- "@micromag/element-layout": "^0.3.194",
57
- "@micromag/element-text": "^0.3.194",
58
- "@micromag/element-visual": "^0.3.194",
59
- "@micromag/transforms": "^0.3.194",
52
+ "@micromag/core": "^0.3.196",
53
+ "@micromag/element-background": "^0.3.198",
54
+ "@micromag/element-call-to-action": "^0.3.196",
55
+ "@micromag/element-container": "^0.3.196",
56
+ "@micromag/element-layout": "^0.3.196",
57
+ "@micromag/element-text": "^0.3.196",
58
+ "@micromag/element-visual": "^0.3.198",
59
+ "@micromag/transforms": "^0.3.196",
60
60
  "classnames": "^2.2.6",
61
61
  "lodash": "^4.17.21",
62
62
  "prop-types": "^15.7.2",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "b873f7d8957f26dcfbe27d1ad78f2102810e8c4d"
69
+ "gitHead": "1aba9d8d7585194940b790d71203dff154831f74"
70
70
  }