themes icon indicating copy to clipboard operation
themes copied to clipboard

Natural: Image Block Caption Misaligned

Open ivan-ottinger opened this issue 5 years ago • 3 comments

Steps to replicate

  1. Add an Image block and add caption.
  2. Observe in the front-end.

Result

The caption is aligned to the left like this:

Markup on 2020-12-22 at 17:11:54

Expected

The caption is properly aligned - centered.

Possible workaround until the bug is fixed:

/* Natural theme image caption alignment fix / io / #xxxxxxxx-hc */
.wp-block-image .aligncenter>figcaption {
	margin-left: auto;
	margin-right: auto;
	display: block;
}
  • User report: 18853515-hc

ivan-ottinger avatar Dec 22 '20 16:12 ivan-ottinger

Moved to Trac

scruffian avatar Jan 21 '21 09:01 scruffian

Another report via 29883060-hc.

What I found was the image captions only displayed incorrectly when the image was set as to "Align center". When we changed alignment to "None", the captions displayed correctly.

We also found that the images were displayed correctly via Firefox, but incorrectly via Chrome and Safari.

kylemcph avatar Dec 30 '21 14:12 kylemcph

We had another report in 4874308-zen (site was Simple, using Hemingway Rewritten)

I wasn't able to use the remove-alignment workaround, it had no effect.

I suggested making a caption-like paragraph block using superscript to make the letters smaller and raised.

sophiegyo avatar Mar 19 '22 12:03 sophiegyo