Storybook: Please move applied "zoom" css property to preview root rather than body

Created on 7 Aug 2020  路  2Comments  路  Source: storybookjs/storybook

Is your feature request related to a problem? Please describe.
When you apply the zoom feature in "Canvas" - this will leak into other panels like "Docs"

Describe the solution you'd like
Please move the css property "zoom" with applied value to "iframe > body > #root" element instead

Describe alternatives you've considered
No other alternative exists

Are you able to assist bring the feature to reality?
Thought it would be a rather easy fix - looked in source, not simple

Additional context
Capture

Thank you

docs bug

Most helpful comment

@Tomastomaslol tested, and fixed in next

All 2 comments

Hi @IgorSzyporyn The behaviour you are describing sounds very similar to https://github.com/storybookjs/storybook/issues/11662. There should be a fix for this in the latest next build.

Are you still able to recreate the behaviour in the latest next build of Storybook?

https://next--storybookjs.netlify.app/official-storybook/

@Tomastomaslol tested, and fixed in next

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zvictor picture zvictor  路  3Comments

shilman picture shilman  路  3Comments

rpersaud picture rpersaud  路  3Comments

oriSomething picture oriSomething  路  3Comments

ZigGreen picture ZigGreen  路  3Comments