WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.32k stars 4.12k forks source link

Embed Images: Center button doesn't align to center #15130

Open supernovia opened 5 years ago

supernovia commented 5 years ago

Describe the bug The left, right, wide, and full alignment buttons work for image embeds, but center align does not center.

To reproduce Steps to reproduce the behavior:

  1. Embed an image from an embeddable source
  2. Click on each alignment button
  3. Notice center stays left aligned

Expected behavior I expect the item to be centered.

Screenshots In the editor: Screen Shot 2019-04-23 at 12 40 17 PM

On the post: Screen Shot 2019-04-23 at 12 40 49 PM

Desktop (please complete the following information):

Additional context

adampatterson commented 5 years ago

I am working through some CSS adjustments to my theme and ran across some of the center alignment issues.

I was looking for other formats to test and found your issue.

I copy the URL and actually get an error, Is there another way to embed the IMGUR images?

https://imgur.com/gallery/qCQyle2

I tried to paste the URL in a block, as well as using the IMGUR block specifically.

Metatronovich commented 4 years ago

Was there ever a solution to this? Thanks.

annezazu commented 3 years ago

As of Gutenberg 10.6.1, this is still an issue and there is no option to add alignment.