Comments (5)
Other themes like twentytwentythree / four are doing dynamic resizing of the iframe to avoid this overflow. Is that part of videopress or the theme itself?
This is the resize function that sets the iframe's width
and height
:
This code is in the script https://v0.wordpress.com/js/next/videopress-iframe.js?m=1674852142 and runs on load. It executes for all themes I checked. The value it uses for the width
comes from the parent element, so it depends on the CSS rules used in the parent DOM hierarchy, and in Feelin' Good, those rules are different from those in other themes, where it doesn't overflow.
Let's just make sure we're not breaking other themes in the process:
This is always the tricky part with so many themes out there. But based on how T23 and T24 work today, setting width
to be 100%
shouldn't have any adverse effects. I will test a fix tomorrow with a mix of themes.
I'll also update the aspect-ratio
.
from themes.
I have reproduced this and will look at a fix now.
from themes.
I've drafted a PR, Automattic/jetpack#37025, but I'm still not sure it's the best solution and testing turned out to be problematic anyway.
This looks workable to me with the aspect-ratio change. Let's just make sure we're not breaking other themes in the process:
Other themes like twentytwentythree / four are doing dynamic resizing of the iframe to avoid this overflow. Is that part of videopress or the theme itself?
from themes.
Support References
This comment is automatically generated. Please do not edit it.
- -zen
- 7894295-zen
from themes.
This is turning out to be a tricky issue. The fix is simple in theory but can be made in different places: core, Jetpack, and individual theme files. I've found that most themes don't have this issue, but comparing those with Feelin' Good, I can't see what's different. Ideally, I would make Feelin' Good consistent with them rather than add some special CSS to its theme.
Another option is to update Jetpack in a way that iframe use width:100%; max-width: nnnpx
instead of width:nnnpx
as the first one will not overflow like the containers. I've drafted a PR, Automattic/jetpack#37025, but I'm still not sure it's the best solution and testing turned out to be problematic anyway.
I also found that the Freddie theme has a similar issue to the one reported here. There are probably others, too, which makes me think that we should fix it in the block. I will try and deploy something tomorrow.
![Screenshot 2567-04-23 at 15 50 26](https://private-user-images.githubusercontent.com/6851384/324882132-bd8864cc-b2c3-4319-ab41-d6bf299965b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1ODgwMTAsIm5iZiI6MTcyMzU4NzcxMCwicGF0aCI6Ii82ODUxMzg0LzMyNDg4MjEzMi1iZDg4NjRjYy1iMmMzLTQzMTktYWI0MS1kNmJmMjk5OTY1YjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTNUMjIyMTUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjA4M2UyMzFkMjc1MWUwNWZkODk3ZTAwOWVhY2NjZjRjNGViZTBiZDUxNzJhZWUwMGI5MmNmNGQ5N2FiM2U2YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.nhp5CXjTlb_wa9e186efiYyLW2aHfGGs8Oxqo2zSF7E)
from themes.
Related Issues (20)
- Assember: No way to restore Front Page template if deleted HOT 5
- Button Outline Not Working on Illustratr Theme HOT 4
- Hever: Theme no longer respects "Display Site Title and Tagline" in Site Identity HOT 3
- OutNow: Static link in the front page template HOT 1
- Twenty Sixteen: Image Block Alignment Error (Left/Right) HOT 1
- [Exford] Button block preview in the customizer is missing background color
- Multiple themes: Remove copyright symbol HOT 3
- Separator block(dots) doesn't render anymore HOT 4
- [Bug]: Dropdown icon appears out of the field for Assembler Theme
- Rainfall: spacing issues on WordPress 6.6 HOT 1
- wpcom-themes - 156343
- Rowling: Image Block Center Alignment Not Working HOT 4
- CELSIUS infinite scroll doesn't seem to work HOT 1
- Raw Code Appearing on Huntt Theme HOT 1
- Pique theme: Rendering product star ratings as "SSSSS" instead of five stars
- Startfitter theme: Editing wipes out Front Page template content HOT 12
- Assembler: patterns don't load while on self-hosted HOT 1
- Organizer: impossible for block setting to override a hard-coded "posts per page" from theme template HOT 2
- [Carnation] Site Title block's font selection setting is being overridden by theme's default heading font
- Bug: dotOrg deployment script seems to be breaking on specific themes.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from themes.