@micromag/screen-audio 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
@@ -262,7 +262,7 @@ var AudioScreen = function AudioScreen(_ref) {
262
262
  key: "bottom",
263
263
  className: styles.bottom,
264
264
  style: {
265
- transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
265
+ transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
266
266
  paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
267
267
  paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
268
268
  paddingBottom: spacing / 2,
@@ -297,7 +297,7 @@ var AudioScreen = function AudioScreen(_ref) {
297
297
  fullscreen: true,
298
298
  style: !isPlaceholder ? {
299
299
  padding: spacing,
300
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing
300
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing
301
301
  } : null
302
302
  }, elements)));
303
303
  };
package/lib/index.js CHANGED
@@ -282,7 +282,7 @@ var AudioScreen = function AudioScreen(_ref) {
282
282
  key: "bottom",
283
283
  className: styles.bottom,
284
284
  style: {
285
- transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
285
+ transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
286
286
  paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
287
287
  paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
288
288
  paddingBottom: spacing / 2,
@@ -317,7 +317,7 @@ var AudioScreen = function AudioScreen(_ref) {
317
317
  fullscreen: true,
318
318
  style: !isPlaceholder ? {
319
319
  padding: spacing,
320
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing
320
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing
321
321
  } : null
322
322
  }, elements)));
323
323
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-audio",
3
- "version": "0.3.193",
3
+ "version": "0.3.196",
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.190",
53
- "@micromag/element-audio": "^0.3.190",
54
- "@micromag/element-background": "^0.3.193",
55
- "@micromag/element-call-to-action": "^0.3.190",
56
- "@micromag/element-closed-captions": "^0.3.190",
57
- "@micromag/element-container": "^0.3.190",
58
- "@micromag/element-layout": "^0.3.190",
59
- "@micromag/element-media-controls": "^0.3.190",
60
- "@micromag/transforms": "^0.3.190",
52
+ "@micromag/core": "^0.3.196",
53
+ "@micromag/element-audio": "^0.3.196",
54
+ "@micromag/element-background": "^0.3.196",
55
+ "@micromag/element-call-to-action": "^0.3.196",
56
+ "@micromag/element-closed-captions": "^0.3.196",
57
+ "@micromag/element-container": "^0.3.196",
58
+ "@micromag/element-layout": "^0.3.196",
59
+ "@micromag/element-media-controls": "^0.3.196",
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": "baa77c4946627fec9822955390e547ad8639f07f"
70
+ "gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
71
71
  }