@stoplight/elements-core 7.5.1 → 7.5.2

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/index.esm.js CHANGED
@@ -2382,7 +2382,7 @@ const SidebarLayout = React.forwardRef(({ sidebar, children, maxContentWidth = M
2382
2382
  paddingLeft: `calc((100% - ${maxContentWidth}px) / 2)`,
2383
2383
  minWidth: `${sidebarWidth}px`,
2384
2384
  } }, sidebar),
2385
- React.createElement(Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, w: "full" },
2385
+ React.createElement(Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, overflowY: "auto", overflowX: "hidden", w: "full" },
2386
2386
  React.createElement(Box, { style: { maxWidth: `${maxContentWidth - sidebarWidth}px` }, py: 16 }, children))));
2387
2387
  });
2388
2388
 
package/index.js CHANGED
@@ -2437,7 +2437,7 @@ const SidebarLayout = React__namespace.forwardRef(({ sidebar, children, maxConte
2437
2437
  paddingLeft: `calc((100% - ${maxContentWidth}px) / 2)`,
2438
2438
  minWidth: `${sidebarWidth}px`,
2439
2439
  } }, sidebar),
2440
- React__namespace.createElement(mosaic.Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, w: "full" },
2440
+ React__namespace.createElement(mosaic.Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, overflowY: "auto", overflowX: "hidden", w: "full" },
2441
2441
  React__namespace.createElement(mosaic.Box, { style: { maxWidth: `${maxContentWidth - sidebarWidth}px` }, py: 16 }, children))));
2442
2442
  });
2443
2443
 
package/index.mjs CHANGED
@@ -2382,7 +2382,7 @@ const SidebarLayout = React.forwardRef(({ sidebar, children, maxContentWidth = M
2382
2382
  paddingLeft: `calc((100% - ${maxContentWidth}px) / 2)`,
2383
2383
  minWidth: `${sidebarWidth}px`,
2384
2384
  } }, sidebar),
2385
- React.createElement(Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, w: "full" },
2385
+ React.createElement(Box, { ref: scrollRef, bg: "canvas", px: 24, flex: 1, overflowY: "auto", overflowX: "hidden", w: "full" },
2386
2386
  React.createElement(Box, { style: { maxWidth: `${maxContentWidth - sidebarWidth}px` }, py: 16 }, children))));
2387
2387
  });
2388
2388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements-core",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "main": "./index.js",
5
5
  "sideEffects": [
6
6
  "web-components.min.js",