@micromag/screen-title 0.3.190 → 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
@@ -189,8 +189,8 @@ var TitleScreen = function TitleScreen(_ref) {
189
189
  verticalAlign: verticalAlign,
190
190
  style: !isPlaceholder ? {
191
191
  padding: spacing,
192
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
193
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
192
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
193
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
194
194
  } : null
195
195
  }, !isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React.createElement(Spacer, {
196
196
  key: "spacer-cta-top"
package/lib/index.js CHANGED
@@ -210,8 +210,8 @@ var TitleScreen = function TitleScreen(_ref) {
210
210
  verticalAlign: verticalAlign,
211
211
  style: !isPlaceholder ? {
212
212
  padding: spacing,
213
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
214
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
213
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
214
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
215
215
  } : null
216
216
  }, !isPlaceholder && hasCallToAction && isMiddleLayout ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
217
217
  key: "spacer-cta-top"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-title",
3
- "version": "0.3.190",
3
+ "version": "0.3.195",
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.190",
53
- "@micromag/element-background": "^0.3.190",
54
- "@micromag/element-call-to-action": "^0.3.190",
55
- "@micromag/element-container": "^0.3.190",
56
- "@micromag/element-heading": "^0.3.190",
57
- "@micromag/element-layout": "^0.3.190",
58
- "@micromag/element-text": "^0.3.190",
59
- "@micromag/transforms": "^0.3.190",
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/transforms": "^0.3.194",
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": "36be7dcf459e109654b406147cc723a52cb784cd"
69
+ "gitHead": "c57fbd99811553c3c9cf0268fec643048a9948ae"
70
70
  }