Skip to content

Commit

Permalink
chore: remove sb iframe scrollbars (#5680)
Browse files Browse the repository at this point in the history
* chore: remove sb scrollbars

* fix: make changes in sb preview instead
  • Loading branch information
matthewgallo committed Jul 17, 2024
1 parent 1b5cdaf commit 96507a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const makeViewport = (name, width, shadow) => ({
styles: {
border: '1px solid #1EA7FD',
boxShadow: `0 0 50px 20px rgb(30 167 253 / ${shadow}%)`,
width,
width: width === '100%' ? 'calc(100% - 2px)' : width,
// when width is fixed, leave room for a horizontal scroll bar
height: width === '100%' ? '100%' : 'calc(100% - 12px)',
height: width === '100%' ? 'calc(100% - 2px)' : 'calc(100% - 12px)',
},
});
const carbonViewports = {
Expand Down

0 comments on commit 96507a2

Please sign in to comment.