mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Merge pull request #20352 from neogeek/zoom-min-height-centered-preview
Set min-height relative to the viewport and the zoom level.
This commit is contained in:
commit
e4377dcab9
@ -39,6 +39,7 @@ export class ZoomIFrame extends Component<IZoomIFrameProps> {
|
||||
if (browserSupportsCssZoom()) {
|
||||
Object.assign(this.iframe.contentDocument.body.style, {
|
||||
zoom: 1 / scale,
|
||||
minHeight: `calc(100vh / ${1 / scale})`,
|
||||
});
|
||||
} else {
|
||||
Object.assign(this.iframe.contentDocument.body.style, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user