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 committed Sep 8, 2021
1 parent 70cbe3c commit 9c17ade
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 @@ -129,6 +129,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__container,
.has-child .wp-block-navigation__container .wp-block-navigation__submenu-container {
Expand Down

0 comments on commit 9c17ade

Please sign in to comment.