@micromag/screen-survey 0.3.190 → 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
@@ -450,8 +450,8 @@ var SurveyScreen = function SurveyScreen(_ref) {
450
450
  verticalAlign: verticalAlign,
451
451
  style: !isPlaceholder ? {
452
452
  padding: spacing,
453
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
454
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight + spacing)
453
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
454
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight + spacing)
455
455
  } : null
456
456
  }, items)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
457
457
  ref: callToActionRef,
package/lib/index.js CHANGED
@@ -472,8 +472,8 @@ var SurveyScreen = function SurveyScreen(_ref) {
472
472
  verticalAlign: verticalAlign,
473
473
  style: !isPlaceholder ? {
474
474
  padding: spacing,
475
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
476
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight + spacing)
475
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
476
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight + spacing)
477
477
  } : null
478
478
  }, items)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
479
479
  ref: callToActionRef,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-survey",
3
- "version": "0.3.190",
3
+ "version": "0.3.196",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -49,17 +49,17 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
- "@micromag/core": "^0.3.190",
53
- "@micromag/data": "^0.3.190",
54
- "@micromag/element-background": "^0.3.190",
55
- "@micromag/element-button": "^0.3.190",
56
- "@micromag/element-call-to-action": "^0.3.190",
57
- "@micromag/element-container": "^0.3.190",
58
- "@micromag/element-heading": "^0.3.190",
59
- "@micromag/element-layout": "^0.3.190",
60
- "@micromag/element-scroll": "^0.3.190",
61
- "@micromag/element-text": "^0.3.190",
62
- "@micromag/transforms": "^0.3.190",
52
+ "@micromag/core": "^0.3.196",
53
+ "@micromag/data": "^0.3.196",
54
+ "@micromag/element-background": "^0.3.196",
55
+ "@micromag/element-button": "^0.3.196",
56
+ "@micromag/element-call-to-action": "^0.3.196",
57
+ "@micromag/element-container": "^0.3.196",
58
+ "@micromag/element-heading": "^0.3.196",
59
+ "@micromag/element-layout": "^0.3.196",
60
+ "@micromag/element-scroll": "^0.3.196",
61
+ "@micromag/element-text": "^0.3.196",
62
+ "@micromag/transforms": "^0.3.196",
63
63
  "classnames": "^2.2.6",
64
64
  "lodash": "^4.17.21",
65
65
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "36be7dcf459e109654b406147cc723a52cb784cd"
72
+ "gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
73
73
  }