diff --git a/packages/block-editor/src/components/link-control/link-preview.js b/packages/block-editor/src/components/link-control/link-preview.js index 04a67d44789948..5a5a30969d013c 100644 --- a/packages/block-editor/src/components/link-control/link-preview.js +++ b/packages/block-editor/src/components/link-control/link-preview.js @@ -10,7 +10,7 @@ import { __ } from '@wordpress/i18n'; import { Button, ExternalLink, - __experimentalText as Text, + __experimentalTruncate as Truncate, Tooltip, } from '@wordpress/components'; import { filterURLForDisplay, safeDecodeURI } from '@wordpress/url'; @@ -41,7 +41,7 @@ export default function LinkPreview( { const hasRichData = richData && Object.keys( richData ).length; const displayURL = - ( value && filterURLForDisplay( safeDecodeURI( value.url ), 16 ) ) || + ( value && filterURLForDisplay( safeDecodeURI( value.url ), 24 ) ) || ''; // url can be undefined if the href attribute is unset @@ -88,21 +88,21 @@ export default function LinkPreview( { { ! isEmptyURL ? ( <> - + - { displayTitle } + + { displayTitle } + - { value?.url && displayTitle !== displayURL && ( - { displayURL } + + { displayURL } + ) } @@ -119,7 +119,7 @@ export default function LinkPreview( { label={ __( 'Edit' ) } className="block-editor-link-control__search-item-action" onClick={ onEditClick } - iconSize={ 24 } + size="compact" /> { hasUnlinkControl && (