Skip to content

Commit 72f93d9

Browse files
committed
fix: Prevent block inserter horizontal overflow
The horizontal scrollbar is unnecessary, as the intended content should only scroll vertically.
1 parent fdfe788 commit 72f93d9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/components/visual-editor/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
padding-right: 16px;
4141
}
4242

43+
// Prevent horizontal scroll in the block inserter popover. This only appears to
44+
// occur on touch devices, not cursor devices.
45+
// TODO: Fix this in core and remove the styles.
46+
.gutenberg-kit-visual-editor
47+
.block-editor-inserter__popover
48+
.components-popover__content {
49+
overflow-x: hidden !important; // `!important` required to override inline styles
50+
}
51+
4352
// Hide the inline block appendar button, as its positioning and size is not
4453
// ideal for small screens
4554
.gutenberg-kit-visual-editor

0 commit comments

Comments
 (0)