From 95fb3f873f26d056198bc27ae8a097fbe805b00d Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 16 May 2024 15:53:01 +0200 Subject: [PATCH] Improve link conrol preview when show button text label is enabled. --- .../src/components/link-control/style.scss | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index 91428274a99140..e6b7e8b0b1162d 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -37,12 +37,19 @@ $block-editor-link-control-number-of-actions: 1; .block-editor-link-control__search-item-top { gap: $grid-unit-10; + flex-wrap: wrap; + justify-content: flex-end; .components-button.has-icon { - min-width: inherit; - width: min-content; + width: auto; + padding: $grid-unit-05; } } + + .is-preview .block-editor-link-control__search-item-header { + min-width: 100%; + margin-right: 0; + } } }