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 Apr 18, 2023
1 parent 8d4bbb5 commit c0d704b
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

1 comment on commit c0d704b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in c0d704b.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4729993134
📝 Reported issues:

Please sign in to comment.