Skip to content

Commit

Permalink
Merge pull request #20289 from jpzwarte/fix/viewport-addon-with-compo…
Browse files Browse the repository at this point in the history
…sition

Make the viewport addon compatible with composition.
  • Loading branch information
ndelangen authored Dec 15, 2022
2 parents 970fc0d + 4623dd7 commit ba75532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/addons/viewport/src/Tool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ const toLinks = memoize(50)((list: ViewportItem[], active: LinkBase, set, state,
.filter(Boolean);
});

const iframeId = 'storybook-preview-iframe';
const wrapperId = 'storybook-preview-wrapper';

interface LinkBase {
Expand Down Expand Up @@ -208,7 +207,7 @@ export const ViewportTool: FC = memo(
<ActiveViewportSize>
<Global
styles={{
[`#${iframeId}`]: {
[`iframe[data-is-storybook="true"]`]: {
margin: `auto`,
transition: 'width .3s, height .3s',
position: 'relative',
Expand Down

0 comments on commit ba75532

Please sign in to comment.