Skip to content

Commit

Permalink
Fix quick inserter going off-screen in some situations (#49881)
Browse files Browse the repository at this point in the history
- Add shift prop to quick inserter to keep it within the viewport
  • Loading branch information
talldan authored and Mamaduka committed May 8, 2023
1 parent a3358b2 commit 1f39704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class PrivateInserter extends Component {
'block-editor-inserter__popover',
{ 'is-quick': isQuick }
) }
popoverProps={ { position } }
popoverProps={ { position, shift: true } }
onToggle={ this.onToggle }
expandOnMobile
headerTitle={ __( 'Add a block' ) }
Expand Down

0 comments on commit 1f39704

Please sign in to comment.