Skip to content

Gutenberg 4.1 and 4.1.1 - Youtube video fills ENTIRE page #11085

Closed

Description

@Pikkals

Describe the bug
On Gutenberg 4.1 and 4.1.1 the youtube video now fills the ENTIRE PAGE over all other paragraphs [blocks] with giant spaces in between paragraphs. Only affects articles written in Gutenberg.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'POSTS'
  2. Click on 'ALL POSTS'
  3. Clickon article that is affected.
  4. Scroll down to 'YOUTUBE BLOCK'
  5. Go to Advance CSS
  6. The following CSS appears: wp-embed-aspect-4-3 wp-has-aspect-ratio
  7. If you remove it, the youtube video returns to normal.
  8. If another Admin comes into the article and updates the article, this CSS (wp-embed-aspect-4-3 wp-has-aspect-ratio) magically reappears.

Please note: I have removed this Advanced CSS (wp-embed-aspect-4-3 wp-has-aspect-ratio) from the editor, because this is an important article at the moment and I need people to be able to read it.

Expected behavior
For Youtube video to display normally

Screenshots
image
image

https://www.discerningtheworld.com/2018/10/24/angus-buchan-gods-divine-numerologist/

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser CHROME
  • VersionV 69.0.3497.100 (Official Build) (64-bit)

Additional context

  • Gutenberg 4.1

Activity

  1. arunsathiya commented on Oct 26, 2018

    @arunsathiya
    Contributor

    I tried to reproduce this on Gutenberg 4.1.1, but the YouTube embed appears fine. This is how it looks at my end. But, I do have wp-embed-aspect-16-9 wp-has-aspect-ratio on my advanced CSS section.

    screenshot 2018-10-26 at 11 50 39

    Are you seeing this happen only on Gutenberg 4.1.0, @Pikkals?


    Tested on a local install of WordPress. WordPress 4.9.8 and Gutenberg 4.1.1 using Google Chrome Version 70.0.3538.67 (Official Build) (64-bit) on macOS 10.14 - Mac OS Mojave

  2. changed the title [-]Gutenberg 4.1 - Youtube video fills entire page[/-] [+]Gutenberg 4.1 and 4.1.1 - Youtube video fills ENTIRE page[/+] on Oct 26, 2018
  3. Pikkals commented on Oct 26, 2018

    @Pikkals
    Author

    Hi arunsathiya

    Actually on 4.0 I had this: #10109

    It's got to do with responsive themes I think.

    I will contact my Hueman Pro theme support as well, to fill them in on what's happening now.

    Ok, I've emailed them and sent them to this issue: 11085

  4. Pikkals commented on Oct 26, 2018

    @Pikkals
    Author

    Ok Hueman Pro have literally right this minute updated their theme to Hueman Pro 1.1.5

    But it's still not working, I have to remove the Additional CSS Class for the Youtube video to return to normal.

  5. added
    [Type] Plugin InteroperabilityIncompatibilities between a specific plugin and the block editor. Close with workaround notes.
    on Oct 26, 2018
  6. designsimply commented on Oct 26, 2018

    @designsimply
    Member

    I tested with WordPress 4.9.8 and Gutenberg 4.1.1 and the Twenty Seventeen 1.7 theme using Chrome 70.0.3538.77 on macOS 10.13.6 and I do see wp-embed-aspect-16-9 wp-has-aspect-ratio getting added to the Settings > Block > "Additional CSS Class" field and I think that is the expected behavior. Videos look good in my test and don't explode to fill the page as you described.

    Recent work has been done to remove gaps that were appearing around some videos and to change the way responsive videos work whether or not the theme opts in using add_theme_support( 'responsive-embeds' ); (reference). Note: if a theme has opted in, you would see a "Media Settings" panel in the sidebar for the YouTube block (screenshot). It's possible the Hueman Pro have been working around this or have a separate solution or that the latest update makes a change they didn't anticipate.

    It would be worth letting the Hueman Pro theme authors know:

    • Recent changes were made to make responsive embeds a theme option at Make responsive embeds a theme option #10477
    • Does the problem happen for new posts you create after upgrading to 4.1+ or posts that previously had YouTube embed blocks or both?
    • Steps to reproduce the problem.
    • Note whether you have any other active plugins which could be interfering with how videos (just in case).

    Thank you for testing Gutenberg and for reporting the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] EmbedAffects the Embed Block[Type] Plugin InteroperabilityIncompatibilities between a specific plugin and the block editor. Close with workaround notes.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions