-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Embed video into column - text overlap #12283
Comments
Tested and confirmed that adding a video embed such as YouTube doesn't fit into a 2 column block and explodes outside of the block container area. Tested with WordPress 4.9.8 and Gutenberg 4.5.1 using Firefox 63.0.3 on macOS 10.13.6. (screenshot) Note: I also tested with WordPress 4.9.8 and Gutenberg Aside: I noticed that the video does get constrained to the space but shows up with quite a lot of letterboxing. Tested with WordPress 4.9.8 and Gutenberg `c33e91785` (>4.5.1) and the Twenty Seventeen theme using Firefox 63.0.3 on macOS 10.13.6. |
This also happens with Image & Gallery blocks: That's a 3-column block; the first two columns have Images and the 3rd has a Gallery. Mentioned previously in #11159 |
I'm having the same problem. Seems like some CSS limiting the width of images and videos inside columns in the editor would go a long way toward improving the editing experience for the column block. On the front end they look fine. |
I was about to create a new issue for this when I discovered that I had already earlier created one... I need to correct the above. As the above is a theme I am using that will need to improve the CSS. Additional screenshots from Twenty Nineteen using three columns. |
Here is a suggestion on how to fix this. https://support.google.com/youtube/answer/6375112?co=GENIE.Platform%3DDesktop&hl=en 2160p: 3840x2160. @draganescu @jorgefilipecosta @mapk @ Btw I added this code to the child theme functions file. ` add_filter( 'embed_defaults', 'bigger_embed_size' ); |
@draganescu let me know if this is a bug that can be resolved without design, or if you need some design help. |
Is this something that Andrei @draganescu and/or Andrew @aduth could take a closer look at? |
@mapk what is a good default here? clip the content in a column or attempt to resize the width? |
The problem is the following CSS:
That needs a lower min-width, and it should fix this issue. CC: @draganescu |
Thanks for pinpointing the problem, @jasmussen! |
By the way, I'm almost completely certain that we added this min-width CSS to embed blocks because a number of them aren't responsive. For example, embed an Amazon book and it won't work below something around that number. However, such min-widths should arguably be applied on a per-embed basis, rather than in a blanket way like this, so this is something we should let individual tickets be created for, and proceed with removing that min-width as noted! |
I added a small PR that appear to fix this but not sure if something else breaks instead. @jasmussen |
We will find out Andrei! Thanks for fixing it..:) |
Describe the bug
Adding video into column. Text for the 2nd area of the column overlaps the video.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
That the text would not overlap.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: