From b962d5d2ecd207698c9415a852624315b7c54ae9 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 24 May 2024 08:40:40 +0200 Subject: [PATCH] Improve link conrol preview when show button text label is enabled. (#61726) * Improve link conrol preview when show button text label is enabled. * Reduce gap. * Remove right alignment. Co-authored-by: afercia Co-authored-by: t-hamano Co-authored-by: jasmussen Co-authored-by: richtabor --- .../src/components/link-control/style.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index 91428274a9914..c0cf8a3bc2afe 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -36,13 +36,19 @@ $block-editor-link-control-number-of-actions: 1; } .block-editor-link-control__search-item-top { - gap: $grid-unit-10; + gap: $grid-unit-05; + flex-wrap: wrap; .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; + } } }