@micromag/screen-title 0.3.359 → 0.3.361
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 +2 -2
- package/lib/index.js +2 -2
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -180,8 +180,8 @@ var TitleScreen = function TitleScreen(_ref) {
|
|
|
180
180
|
verticalAlign: verticalAlign,
|
|
181
181
|
style: !isPlaceholder ? {
|
|
182
182
|
padding: spacing,
|
|
183
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
184
|
-
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
|
|
183
|
+
paddingTop: (!isPreview ? viewerTopHeight : 0) + (hasHeader ? spacing / 2 : spacing),
|
|
184
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (hasFooter ? spacing / 2 : spacing)
|
|
185
185
|
} : null
|
|
186
186
|
}, !isPlaceholder && hasHeader ? /*#__PURE__*/React.createElement("div", {
|
|
187
187
|
style: {
|
package/lib/index.js
CHANGED
|
@@ -203,8 +203,8 @@ var TitleScreen = function TitleScreen(_ref) {
|
|
|
203
203
|
verticalAlign: verticalAlign,
|
|
204
204
|
style: !isPlaceholder ? {
|
|
205
205
|
padding: spacing,
|
|
206
|
-
paddingTop: (!isPreview ? viewerTopHeight : 0) + spacing,
|
|
207
|
-
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + spacing
|
|
206
|
+
paddingTop: (!isPreview ? viewerTopHeight : 0) + (hasHeader ? spacing / 2 : spacing),
|
|
207
|
+
paddingBottom: (current && !isPreview ? viewerBottomHeight : 0) + (hasFooter ? spacing / 2 : spacing)
|
|
208
208
|
} : null
|
|
209
209
|
}, !isPlaceholder && hasHeader ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
210
210
|
style: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-title",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.361",
|
|
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.
|
|
53
|
-
"@micromag/element-background": "^0.3.
|
|
54
|
-
"@micromag/element-container": "^0.3.
|
|
55
|
-
"@micromag/element-footer": "^0.3.
|
|
56
|
-
"@micromag/element-header": "^0.3.
|
|
57
|
-
"@micromag/element-heading": "^0.3.
|
|
58
|
-
"@micromag/element-layout": "^0.3.
|
|
59
|
-
"@micromag/element-text": "^0.3.
|
|
60
|
-
"@micromag/transforms": "^0.3.
|
|
52
|
+
"@micromag/core": "^0.3.360",
|
|
53
|
+
"@micromag/element-background": "^0.3.360",
|
|
54
|
+
"@micromag/element-container": "^0.3.360",
|
|
55
|
+
"@micromag/element-footer": "^0.3.360",
|
|
56
|
+
"@micromag/element-header": "^0.3.360",
|
|
57
|
+
"@micromag/element-heading": "^0.3.360",
|
|
58
|
+
"@micromag/element-layout": "^0.3.360",
|
|
59
|
+
"@micromag/element-text": "^0.3.360",
|
|
60
|
+
"@micromag/transforms": "^0.3.360",
|
|
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": "
|
|
70
|
+
"gitHead": "846c75443d002315fbf6ec9b6e6292f7f3dfbd06"
|
|
71
71
|
}
|