@micromag/screen-timeline 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
@@ -333,14 +333,14 @@ var Timeline = function Timeline(_ref) {
333
333
  }, /*#__PURE__*/React.createElement(Layout, {
334
334
  style: !isPlaceholder ? {
335
335
  padding: spacing,
336
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
337
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
336
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
337
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
338
338
  } : null
339
339
  }, timelineElements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
340
340
  ref: callToActionRef,
341
341
  className: classNames([styles.callToAction, _defineProperty({}, styles.disabled, !scrolledBottom)]),
342
342
  style: {
343
- transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
343
+ transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
344
344
  paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
345
345
  paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
346
346
  paddingTop: spacing / 2,
package/lib/index.js CHANGED
@@ -356,14 +356,14 @@ var Timeline = function Timeline(_ref) {
356
356
  }, /*#__PURE__*/React__default["default"].createElement(Layout__default["default"], {
357
357
  style: !isPlaceholder ? {
358
358
  padding: spacing,
359
- paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
360
- paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
359
+ paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
360
+ paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
361
361
  } : null
362
362
  }, timelineElements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
363
363
  ref: callToActionRef,
364
364
  className: classNames__default["default"]([styles.callToAction, _defineProperty__default["default"]({}, styles.disabled, !scrolledBottom)]),
365
365
  style: {
366
- transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
366
+ transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
367
367
  paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
368
368
  paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
369
369
  paddingTop: spacing / 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-timeline",
3
- "version": "0.3.194",
3
+ "version": "0.3.195",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "b873f7d8957f26dcfbe27d1ad78f2102810e8c4d"
71
+ "gitHead": "c57fbd99811553c3c9cf0268fec643048a9948ae"
72
72
  }