From bd256c9639e38c9e5c27ae816a741792ae3ef0af Mon Sep 17 00:00:00 2001 From: epiqueras Date: Mon, 10 Feb 2020 15:31:51 -0500 Subject: [PATCH 1/3] Block Editor: Fix overflowing `LinkControl`. --- packages/block-editor/src/components/link-control/style.scss | 4 ++-- 1 file changed, 2 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 959e1f30c1126..5ca56bd7db73f 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -2,7 +2,8 @@ $block-editor-link-control-number-of-actions: 1; .block-editor-link-control { position: relative; - min-width: $modal-min-width; + width: 90vw; + max-width: $modal-min-width; } // LinkControl popover. @@ -147,7 +148,6 @@ $block-editor-link-control-number-of-actions: 1; text-overflow: ellipsis; max-width: 230px; overflow: hidden; - white-space: nowrap; } .block-editor-link-control__search-item-title { From f25c94515937f2eaf7473fd0238e3e06dafc8f14 Mon Sep 17 00:00:00 2001 From: epiqueras Date: Wed, 12 Feb 2020 11:39:46 -0800 Subject: [PATCH 2/3] Block Editor: Scope changes to popover content. --- .../block-editor/src/components/link-control/style.scss | 9 +++++++-- 1 file changed, 7 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 5ca56bd7db73f..1735c25075bea 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -2,8 +2,13 @@ $block-editor-link-control-number-of-actions: 1; .block-editor-link-control { position: relative; - width: 90vw; - max-width: $modal-min-width; + min-width: $modal-min-width; + + .components-popover__content & { + min-width: unset; + width: 90vw; + max-width: $modal-min-width; + } } // LinkControl popover. From 5f7c53e1348593be3d673a590771fdd132fc51fd Mon Sep 17 00:00:00 2001 From: Enrique Piqueras Date: Wed, 12 Feb 2020 12:01:04 -0800 Subject: [PATCH 3/3] Update packages/block-editor/src/components/link-control/style.scss Co-Authored-By: Andrew Duthie --- packages/block-editor/src/components/link-control/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/link-control/style.scss b/packages/block-editor/src/components/link-control/style.scss index 1735c25075bea..bbabde01b7434 100644 --- a/packages/block-editor/src/components/link-control/style.scss +++ b/packages/block-editor/src/components/link-control/style.scss @@ -5,7 +5,7 @@ $block-editor-link-control-number-of-actions: 1; min-width: $modal-min-width; .components-popover__content & { - min-width: unset; + min-width: auto; width: 90vw; max-width: $modal-min-width; }