@itcase/storybook-config 1.1.73 → 1.1.75

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.
@@ -402,18 +402,20 @@ function withLayoutDecorator() {
402
402
  center: 'sb-layout-center'
403
403
  };
404
404
  var layoutClass = layouts[(parameters == null ? void 0 : parameters.layout) || ''];
405
+ var maxWidthStyle = {
406
+ maxWidth: parameters == null ? void 0 : parameters.maxWidth
407
+ };
405
408
  if (!layoutClass) {
406
409
  return /*#__PURE__*/React.createElement("div", {
407
410
  style: maxWidthStyle
408
411
  }, /*#__PURE__*/React.createElement(Story, null));
409
412
  }
410
- var maxWidthStyle = {
411
- maxWidth: (parameters == null ? void 0 : parameters.maxWidth) + 'px'
412
- };
413
413
  return /*#__PURE__*/React.createElement("div", {
414
414
  className: layoutClass,
415
415
  style: maxWidthStyle
416
- }, /*#__PURE__*/React.createElement(Story, null));
416
+ }, /*#__PURE__*/React.createElement("div", {
417
+ style: maxWidthStyle
418
+ }, /*#__PURE__*/React.createElement(Story, null)));
417
419
  };
418
420
  }
419
421
 
@@ -400,18 +400,20 @@ function withLayoutDecorator() {
400
400
  center: 'sb-layout-center'
401
401
  };
402
402
  var layoutClass = layouts[(parameters == null ? void 0 : parameters.layout) || ''];
403
+ var maxWidthStyle = {
404
+ maxWidth: parameters == null ? void 0 : parameters.maxWidth
405
+ };
403
406
  if (!layoutClass) {
404
407
  return /*#__PURE__*/React.createElement("div", {
405
408
  style: maxWidthStyle
406
409
  }, /*#__PURE__*/React.createElement(Story, null));
407
410
  }
408
- var maxWidthStyle = {
409
- maxWidth: (parameters == null ? void 0 : parameters.maxWidth) + 'px'
410
- };
411
411
  return /*#__PURE__*/React.createElement("div", {
412
412
  className: layoutClass,
413
413
  style: maxWidthStyle
414
- }, /*#__PURE__*/React.createElement(Story, null));
414
+ }, /*#__PURE__*/React.createElement("div", {
415
+ style: maxWidthStyle
416
+ }, /*#__PURE__*/React.createElement(Story, null)));
415
417
  };
416
418
  }
417
419
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/storybook-config",
3
- "version": "1.1.73",
3
+ "version": "1.1.75",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets",
6
6
  "engines": {