You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting @Mamaduka. I updated the title and description to reflect the fact that it isn't showing a rich preview but rather the CSS styles are slightly broken in this context.
I think some styling can be applied to the block-editor-media-replace-flow__image-url-label element. Maybe adding a margin-left to it. `margin-left: 2em;" seems to align the text correctly with the image link; but it is overflows a bit on the edit button.
@JustinyAhin Thanks for your suggestion above. I think we can solve this relatively easily by removing some of the previous CSS rules that are no longer needed in this context thanks to the new rules in the base <LinkControl> component itself.
Activity
[-]Image Block: Displays partial rich URL preview[/-][+]Image Block: URL preview layout is broken[/+]getdave commentedon Jun 30, 2021
Thanks for reporting @Mamaduka. I updated the title and description to reflect the fact that it isn't showing a rich preview but rather the CSS styles are slightly broken in this context.
JustinyAhin commentedon Jul 6, 2021
I think some styling can be applied to the
block-editor-media-replace-flow__image-url-labelelement. Maybe adding a margin-left to it. `margin-left: 2em;" seems to align the text correctly with the image link; but it is overflows a bit on the edit button.We could increase also the popover width.
getdave commentedon Jul 9, 2021
@JustinyAhin Thanks for your suggestion above. I think we can solve this relatively easily by removing some of the previous CSS rules that are no longer needed in this context thanks to the new rules in the base
<LinkControl>component itself.Let me know if #33326 works for you
You can test it using the following workflow https://make.wordpress.org/design/2021/03/03/testing-a-gutenberg-pull-request-pr/
JustinyAhin commentedon Jul 12, 2021
@getdave it works as expected. I've added a comment on the PR.