From 00e25b476e3b50b3a36ef4c854e67f72d7c5397b Mon Sep 17 00:00:00 2001 From: brookewp <35543432+brookewp@users.noreply.github.com> Date: Tue, 28 Feb 2023 17:41:58 -0800 Subject: [PATCH] MediaReplaceFlow: fix styling for LinkControl (#47949) * MediaReplaceFlow: fix styling for LinkControl * Adjust width of popover * Fix missing focus outline --- .../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..81484cbf806623 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: 300px; // 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: 200px; 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 var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus); } .block-editor-link-control__search-item.is-current {