From 32a9a9c22c8dfe7c2bf0c9d16b5fe55a41e1a8f9 Mon Sep 17 00:00:00 2001 From: brookewp Date: Thu, 9 Feb 2023 15:02:29 -0800 Subject: [PATCH] MediaReplaceFlow: fix styling for LinkControl --- .../src/components/media-replace-flow/style.scss | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/block-editor/src/components/media-replace-flow/style.scss b/packages/block-editor/src/components/media-replace-flow/style.scss index 707fd9393ee6c6..e0739bdb456e69 100644 --- a/packages/block-editor/src/components/media-replace-flow/style.scss +++ b/packages/block-editor/src/components/media-replace-flow/style.scss @@ -23,24 +23,22 @@ } .block-editor-link-control { - width: 220px; // Hardcoded width avoids resizing of control when switching between preview/edit. + width: 328px; // Hardcoded width avoids resizing of control when switching between preview/edit. .block-editor-url-input { padding: 0; // Cancel unnecessary default 1px padding in this case. margin: 0; // Reset default LinkControl margins. } - .components-base-control .components-base-control__field { - margin-bottom: 0; - } - - .block-editor-link-control__search-item-title { - max-width: 180px; + .block-editor-link-control__search-item-title, + .block-editor-link-control__search-item-info { + max-width: 220px; white-space: nowrap; } - .block-editor-link-control__search-item-info { - white-space: nowrap; + .block-editor-link-control__tools { + justify-content: flex-end; + padding: $grid-unit-20 0 0; } .block-editor-link-control__search-item.is-current {