Skip to content

Commit

Permalink
Make nav editor links content-width
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales authored and Vicente Canales committed Sep 20, 2021
1 parent 9a825f5 commit 866783f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/edit-navigation/src/components/editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@
border-radius: $radius-block-ui;
}

// Use flex layout to calculate menu item length based on content.
.wp-block-navigation__container {
display: flex;
}

// Override for deeply nested submenus.
.has-child .wp-block-navigation__container .wp-block-navigation__submenu-container {
left: auto;
Expand Down

0 comments on commit 866783f

Please sign in to comment.