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

Aligning Instagram and Twitter embeds to center does not center the embed #38441

Open
susanjanec opened this issue Dec 15, 2019 · 14 comments
Open
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] Normal Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@susanjanec
Copy link

Steps to reproduce

  1. Starting at URL: https://susanjanewptestsite12345.blog/testing-centerting-ig-twitter/
  2. When centering the Instagram and Twitter links as an Instagram and Twitter block, it does not center. You will see on my test post the alignment of each block Left, Center, Right.
  3. The left and right alignment for the block appears to work fine, but the Center alignment does not seem to work - it is still aligned to the Left but looks a bit larger than the Left and Right aligned blocks.

What I expected

The Instagram and Twitter blocks would align in the center.

What happened instead

The Instagram and Twitter blocks aligned to the left and looks slightly larger

Browser / OS version

Chrome / Mac OS High Sierra v 10.13.6

Screenshot / Video

N/A

Context / Source

Reported in 2562009-zen

@susanjanec susanjanec added [Type] Bug Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions labels Dec 15, 2019
@kriskarkoski kriskarkoski added the [Goal] Gutenberg Working towards full integration with Gutenberg label Mar 13, 2020
@kriskarkoski
Copy link
Contributor

I can confirm this issue is still present on Gutenberg 7.7.1 that we're prepping to release. I tested on .org elsewhere and centered was the only alignment to work there, with left and right causing the embeds to be overlayed by the comment area. I've added this to the Gutenberg board though to hopefully get it some attention.

@tbradsha
Copy link
Contributor

tbradsha commented Apr 15, 2020

Same issue in 17765340-hc/2880367-zen.

A CSS fix for Twitter blocks (h/t @scosgro):

.twitter-tweet {
    margin: 0 auto;
}

@philnick206
Copy link

Another report here: #21323357-hc

@cathymcbride
Copy link
Contributor

cathymcbride commented Sep 28, 2020

This is core issue: WordPress/gutenberg#20515

@druesome
Copy link
Contributor

Another report: #24335419-hc

@synora
Copy link
Contributor

synora commented Jan 27, 2021

@cathymcbride 👋 This comment says the functionality has been removed in core and also suggested a plugin that resolved this issue.

Since that issue is closed, can we close this one as well?

@synora synora added the Triaged To be used when issues have been triaged. label Jan 27, 2021
@cathymcbride
Copy link
Contributor

@synora Yes. Let's.

@synora synora added the [Closed] Won't Fix No intention to address issue. label Jan 27, 2021
@synora synora closed this as completed Jan 27, 2021
@carinapilar carinapilar added User Report This issue was created following a WordPress customer report [Pri] High and removed [Goal] Gutenberg Working towards full integration with Gutenberg Blocks Editor blocks, aka Gutenberg blocks, plugins, and extensions Triaged To be used when issues have been triaged. [Closed] Won't Fix No intention to address issue. labels Feb 18, 2022
@carinapilar carinapilar added this to Needs triage in HE Triaging Board (new bugs) via automation Feb 18, 2022
@carinapilar
Copy link

I'm not sure why this was closed, it also happens with Twitter embeds, which isn't related to the other GH issue.

The Center alignment option isn't working, and it seems that the only workaround is using CSS, which won't be available on Free and Personal sites. To replicate this, you can add a Twitter link to a page, and try to change its alignment using the following options on the block:

TwitterEmbed

I got a new report here: https://wordpress.com/pt-br/forums/topic/publicacoes-5

@carinapilar carinapilar reopened this Feb 18, 2022
@jartes
Copy link
Contributor

jartes commented Feb 23, 2022

Had the same issue with a WordPress embed on 34345967-hc

The following CSS code fixed the issue:

.wp-block-embed.is-type-wp-embed {
  width: fit-content;
}

@Greatdane Greatdane moved this from Needs triage to Triaged in HE Triaging Board (new bugs) Feb 24, 2022
@Greatdane Greatdane added the Triaged To be used when issues have been triaged. label Feb 24, 2022
@Greatdane
Copy link

Confirmed. Aligning right causes more issues;

Markup 2022-02-24 at 14 22 25

@cometgrrl cometgrrl moved this from Triaged to Prioritized - Bugs in HE Triaging Board (new bugs) Mar 2, 2022
@xavibenjamin
Copy link

Tackling this issue first 😄

@carinapilar
Copy link

Another case on the forums here: https://wordpress.com/pt-br/forums/topic/redes-sociais-2

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Support References

This comment is automatically generated. Please do not edit it.

@cecilearkay
Copy link

Another report in 7366108-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] Normal Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report
Projects
Development

No branches or pull requests