Open jartes opened 16 hours ago
Hi @jartes,
Thank you for bringing this up. I was successfully able to reproduce the issue:
https://github.com/user-attachments/assets/2760720f-6d45-4303-ae6e-9d885d0fe292
It appears that this behavior is caused by the <a>
element taking up the full width.
Setting the width to auto
seems to resolve the problem:
Description
When a caption in an Image Block includes a link, and the image is set to either wide-width for full-width, the text and link in the caption are split up and shown on two lines.
When the Image Block is set to centered, the text and link appear on the same line.
Is this expected behavior for the Image Block? If so, is there an option in the toolbar or settings to remove the when a link is used?
From what I see, the following CSS is causing the link being in one line:
Step-by-step reproduction instructions
tag is added.
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.