Opened 12 years ago
Closed 12 years ago
#23955 closed defect (bug) (fixed)
Twenty Thirteen: Embedded media positioned incorrectly at <999px breakpoints
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.6 |
Component: | Bundled Theme | Keywords: | needs-testing has-patch |
Focuses: | Cc: |
Description (last modified by )
At tablet and smaller sizes, embedded media are shifted offscreen to the left rather than being centered in the layout. Patch attached.
props to alun for reporting the issue and the fix here: http://wordpress.org/support/topic/twenty-thirteen-responsive-layout-for-entry-media?replies=1
Attachments (12)
Change History (30)
#2
@
12 years ago
- Component changed from General to Bundled Theme
- Milestone changed from Awaiting Review to 3.6
- Version set to trunk
#4
in reply to:
↑ 3
@
12 years ago
- Keywords reporter-feedback removed
Replying to lancewillett:
@sabreuse Could you help us out by attaching before and after screenshots? Also, browser info is always helpful for repeating the bugs.
Sure thing -- sorry I didn't think of it before:
Currently, seeing this on both Chrome & Firefox:
After patch:
#5
@
12 years ago
- Keywords needs-testing added
Sabreuse's patch went in the right direction, but we need a bit more verbose. I only tested the patch with images, have not had the chance to test it with videos.
We need to account for all screen sizes, with and w/o a sidebar, LTR and RTL.
#8
@
12 years ago
Seems somewhere along the line video embeds, like YouTube URLs stopped being filtered to the correct width of 724, with twentythirteen_content_width()
that fires on 'template_redirect'. It's broken on the index view or any view where the video post isn't the first in the results. (Works OK on single.)
#12
@
12 years ago
- Keywords has-patch added
if you have a giant video and then filter only width, and it happens to equal content width, the aspect ratio is going to get effed up - I think constraints need to happen in the shortcode, which every video passes through. My patch only works if the 2013 filter isn't there. Let's discuss.
My patch is necessary anyways to constrain giant videos from rendering bigger than $content_width
in the admin and on the front end
#13
@
12 years ago
23955.6.diff fixes TwentyThirteen as well
#14
@
12 years ago
23955.7.diff uses $content_width
instead of hard-coding 724
@sabreuse Could you help us out by attaching before and after screenshots? Also, browser info is always helpful for repeating the bugs.