@micromag/screen-ranking 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 +3 -3
- package/lib/index.js +3 -3
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -224,14 +224,14 @@ var RankingScreen = function RankingScreen(_ref) {
|
|
|
224
224
|
className: styles.layout,
|
|
225
225
|
style: !isPlaceholder ? {
|
|
226
226
|
padding: spacing,
|
|
227
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
228
|
-
paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
227
|
+
paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
|
|
228
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
229
229
|
} : null
|
|
230
230
|
}, elements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React.createElement("div", {
|
|
231
231
|
ref: callToActionRef,
|
|
232
232
|
className: classNames([styles.callToAction, _defineProperty({}, styles.disabled, !scrolledBottom)]),
|
|
233
233
|
style: {
|
|
234
|
-
transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
234
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
235
235
|
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
236
236
|
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
237
237
|
paddingTop: spacing / 2,
|
package/lib/index.js
CHANGED
|
@@ -245,14 +245,14 @@ var RankingScreen = function RankingScreen(_ref) {
|
|
|
245
245
|
className: styles.layout,
|
|
246
246
|
style: !isPlaceholder ? {
|
|
247
247
|
padding: spacing,
|
|
248
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
249
|
-
paddingBottom: (!isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
248
|
+
paddingTop: (current && !isPreview ? viewerTopHeight : 0) + spacing,
|
|
249
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (callToActionHeight || spacing)
|
|
250
250
|
} : null
|
|
251
251
|
}, elements)), !isPlaceholder && hasCallToAction ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
252
252
|
ref: callToActionRef,
|
|
253
253
|
className: classNames__default["default"]([styles.callToAction, _defineProperty__default["default"]({}, styles.disabled, !scrolledBottom)]),
|
|
254
254
|
style: {
|
|
255
|
-
transform: !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
255
|
+
transform: current && !isPreview ? "translate(0, -".concat(viewerBottomHeight, "px)") : null,
|
|
256
256
|
paddingLeft: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
257
257
|
paddingRight: Math.max(spacing / 2, viewerBottomSidesWidth),
|
|
258
258
|
paddingTop: spacing / 2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-ranking",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.196",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.3.
|
|
53
|
-
"@micromag/data": "^0.3.
|
|
54
|
-
"@micromag/element-background": "^0.3.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
56
|
-
"@micromag/element-container": "^0.3.
|
|
57
|
-
"@micromag/element-heading": "^0.3.
|
|
58
|
-
"@micromag/element-layout": "^0.3.
|
|
59
|
-
"@micromag/element-scroll": "^0.3.
|
|
60
|
-
"@micromag/element-text": "^0.3.
|
|
61
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.196",
|
|
53
|
+
"@micromag/data": "^0.3.196",
|
|
54
|
+
"@micromag/element-background": "^0.3.196",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.196",
|
|
56
|
+
"@micromag/element-container": "^0.3.196",
|
|
57
|
+
"@micromag/element-heading": "^0.3.196",
|
|
58
|
+
"@micromag/element-layout": "^0.3.196",
|
|
59
|
+
"@micromag/element-scroll": "^0.3.196",
|
|
60
|
+
"@micromag/element-text": "^0.3.196",
|
|
61
|
+
"@micromag/transforms": "^0.3.196",
|
|
62
62
|
"classnames": "^2.2.6",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
64
|
"prop-types": "^15.7.2",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "f76253e63fa17840ffa08757a7f4a32554868288"
|
|
72
72
|
}
|