@micromag/screen-image 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
@@ -278,8 +278,8 @@ var ImageScreen = function ImageScreen(_ref) {
278
278
  }))));
279
279
  }
280
280
 
281
- var paddingBottom = (!isPreview ? viewerBottomHeight : 0) + finalSpacing / 2;
282
- var paddingTop = (!isPreview ? viewerTopHeight : 0) + finalSpacing / 2;
281
+ var paddingBottom = (current && !isPreview ? viewerBottomHeight : 0) + finalSpacing / 2;
282
+ var paddingTop = (current && !isPreview ? viewerTopHeight : 0) + finalSpacing / 2;
283
283
 
284
284
  if (isCard || isFullscreen) {
285
285
  paddingTop = 0;
@@ -287,8 +287,8 @@ var ImageScreen = function ImageScreen(_ref) {
287
287
  }
288
288
 
289
289
  if (isCardReverse) {
290
- paddingTop = !isPreview ? viewerTopHeight : 0;
291
- paddingBottom = !isPreview ? viewerBottomHeight : 0;
290
+ paddingTop = current && !isPreview ? viewerTopHeight : 0;
291
+ paddingBottom = current && !isPreview ? viewerBottomHeight : 0;
292
292
  }
293
293
 
294
294
  return /*#__PURE__*/React.createElement("div", {
package/lib/index.js CHANGED
@@ -300,8 +300,8 @@ var ImageScreen = function ImageScreen(_ref) {
300
300
  }))));
301
301
  }
302
302
 
303
- var paddingBottom = (!isPreview ? viewerBottomHeight : 0) + finalSpacing / 2;
304
- var paddingTop = (!isPreview ? viewerTopHeight : 0) + finalSpacing / 2;
303
+ var paddingBottom = (current && !isPreview ? viewerBottomHeight : 0) + finalSpacing / 2;
304
+ var paddingTop = (current && !isPreview ? viewerTopHeight : 0) + finalSpacing / 2;
305
305
 
306
306
  if (isCard || isFullscreen) {
307
307
  paddingTop = 0;
@@ -309,8 +309,8 @@ var ImageScreen = function ImageScreen(_ref) {
309
309
  }
310
310
 
311
311
  if (isCardReverse) {
312
- paddingTop = !isPreview ? viewerTopHeight : 0;
313
- paddingBottom = !isPreview ? viewerBottomHeight : 0;
312
+ paddingTop = current && !isPreview ? viewerTopHeight : 0;
313
+ paddingBottom = current && !isPreview ? viewerBottomHeight : 0;
314
314
  }
315
315
 
316
316
  return /*#__PURE__*/React__default["default"].createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-image",
3
- "version": "0.3.194",
3
+ "version": "0.3.198",
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.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-heading": "^0.3.194",
57
- "@micromag/element-layout": "^0.3.194",
58
- "@micromag/element-text": "^0.3.194",
59
- "@micromag/element-visual": "^0.3.194",
60
- "@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-heading": "^0.3.196",
57
+ "@micromag/element-layout": "^0.3.196",
58
+ "@micromag/element-text": "^0.3.196",
59
+ "@micromag/element-visual": "^0.3.198",
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": "b873f7d8957f26dcfbe27d1ad78f2102810e8c4d"
70
+ "gitHead": "1aba9d8d7585194940b790d71203dff154831f74"
71
71
  }