@micromag/screen-urbania-recommendation 0.3.194 → 0.3.195

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
@@ -296,8 +296,8 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
296
296
  className: styles.layout,
297
297
  style: !isPlaceholder ? {
298
298
  padding: spacing,
299
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
300
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
299
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
300
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
301
301
  } : null
302
302
  }, /*#__PURE__*/React.createElement(TransitionsStagger, {
303
303
  transitions: transitions,
package/lib/index.js CHANGED
@@ -316,8 +316,8 @@ var UrbaniaRecommendation = function UrbaniaRecommendation(_ref) {
316
316
  className: styles.layout,
317
317
  style: !isPlaceholder ? {
318
318
  padding: spacing,
319
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
320
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
319
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
320
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
321
321
  } : null
322
322
  }, /*#__PURE__*/React__default["default"].createElement(components.TransitionsStagger, {
323
323
  transitions: transitions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-urbania-recommendation",
3
- "version": "0.3.194",
3
+ "version": "0.3.195",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "b873f7d8957f26dcfbe27d1ad78f2102810e8c4d"
70
+ "gitHead": "c57fbd99811553c3c9cf0268fec643048a9948ae"
71
71
  }