Skip to content

Commit

Permalink
Try full height
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Oct 8, 2024
1 parent 14e4c11 commit 489a354
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-editor/src/components/block-canvas/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ iframe[name="editor-canvas"].is-zoomed-out {
$max-width: 750px; // This is also hardcoded as ZOOM_OUT_MAX_WIDTH in the iframe component and needs to be manually kept in sync.
$scale: var(--wp-block-editor-iframe-zoom-out-scale);
$inset: var(--wp-block-editor-iframe-zoom-out-inset);
inset-block: $inset 0;
transform: scale(#{$scale});
flex-basis: calc((100% - #{$inset} * 2) / #{$scale});
height: calc((100% - #{$inset} * 2) / #{$scale});
height: calc(100% / #{$scale});
$inset-max-width: "(#{$max-width} - #{$inset} * 2)";
max-width: calc(#{$inset-max-width} / #{$scale});
}

0 comments on commit 489a354

Please sign in to comment.