From 866783fca9cb70fb7e5831cd360e814120f7e484 Mon Sep 17 00:00:00 2001 From: Vicente Canales Date: Wed, 8 Sep 2021 12:12:28 -0300 Subject: [PATCH] Make nav editor links content-width --- packages/edit-navigation/src/components/editor/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/edit-navigation/src/components/editor/style.scss b/packages/edit-navigation/src/components/editor/style.scss index 0e474f6516f2db..6f4fdb92a10655 100644 --- a/packages/edit-navigation/src/components/editor/style.scss +++ b/packages/edit-navigation/src/components/editor/style.scss @@ -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;