Skip to content

Commit

Permalink
Fix overflow:hidden hides the bottom of tablet/mobile preview (#38019)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored and noisysocks committed Jan 17, 2022
1 parent d06bfc0 commit 4102b2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/edit-site/src/components/block-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
.edit-site-visual-editor__editor-canvas {
border-radius: 2px;
}

// To hide the horizontal scrollbar and show the drag handle on the
// left and right of the container.
.components-resizable-box__container {
overflow: visible;
}
}
}

Expand All @@ -46,6 +52,8 @@

.components-resizable-box__container {
margin: 0 auto;
// Removing this will cancel the bottom margins in the iframe.
overflow: auto;
}

.resizable-editor__drag-handle {
Expand Down
1 change: 0 additions & 1 deletion packages/edit-site/src/components/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ html.wp-toolbar {
position: relative;
height: 100%;
display: block;
overflow: hidden;

iframe {
display: block;
Expand Down

0 comments on commit 4102b2b

Please sign in to comment.