[wp-trac] [WordPress Trac] #42244: Audio Widget looks weird
WordPress Trac
noreply at wordpress.org
Mon Oct 16 22:00:48 UTC 2017
#42244: Audio Widget looks weird
---------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by westonruter):
It does seem to be a regression. The audio player looks fine in 4.8.2.
In 4.8.2, I see the `.mejs-container` element has `width:100%` whereas in
`trunk` it has `width: 412.641px;` and `min-width: 227px;`.
Adding a `max-width` is not helping here because unlike
`wp_video_shortcode()` which outputs the `video` wrapper elements
statically (the `div.wp-video`), the `wp_audio_shortcode()` wraps the
`audio` element dynamically in JS. So the `max-width` gets added to the
`audio` element which is not shown anyway.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42244#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list