@micromag/screen-text 0.3.193 → 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
@@ -176,8 +176,8 @@ var TextScreen = function TextScreen(_ref) {
176
176
  verticalAlign: verticalAlign,
177
177
  style: !isPlaceholder ? {
178
178
  padding: spacing,
179
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
180
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
179
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
180
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
181
181
  } : null
182
182
  }, /*#__PURE__*/React.createElement(TransitionsStagger, {
183
183
  transitions: transitions,
package/lib/index.js CHANGED
@@ -196,8 +196,8 @@ var TextScreen = function TextScreen(_ref) {
196
196
  verticalAlign: verticalAlign,
197
197
  style: !isPlaceholder ? {
198
198
  padding: spacing,
199
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
200
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + spacing
199
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
200
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
201
201
  } : null
202
202
  }, /*#__PURE__*/React__default["default"].createElement(components.TransitionsStagger, {
203
203
  transitions: transitions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-text",
3
- "version": "0.3.193",
3
+ "version": "0.3.196",
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.193",
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.196",
53
+ "@micromag/element-background": "^0.3.196",
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/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": "baa77c4946627fec9822955390e547ad8639f07f"
69
+ "gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
70
70
  }