Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Links in image captions are each forced to the next line #18

Closed
desrosj opened this issue Oct 21, 2024 · 1 comment
Closed

Links in image captions are each forced to the next line #18

desrosj opened this issue Oct 21, 2024 · 1 comment

Comments

@desrosj
Copy link

desrosj commented Oct 21, 2024

On my personal site, I use image captions for image attribution. It seems that the .wp-image-block a {} selector is either too broad, or styles for links within figcaption need to be added.

At first I though this was a width issue, but it seems that every <a> in .wp-image-block receives display: inline-block;. This creates a really tall caption. This happens for both image and gallery blocks.

Screenshot 2024-10-21 at 10 12 48 AM
Screenshot 2024-10-21 at 10 13 18 AM

The screenshots were taken from this blog post.

@richtabor
Copy link
Owner

Looks like this is a Gutenberg bug, reported https://github.com/WordPress/gutenberg/issues/67206—and with a fix in the works. Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants