Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#25977 closed defect (bug) (fixed)

MP6: the media modal is broken in smaller windows

Reported by: azaozz's profile azaozz Owned by:
Milestone: 3.8 Priority: highest omg bbq
Severity: major Version: 3.8
Component: Administration Keywords: has-patch needs-refresh
Focuses: ui Cc:

Description

After the MP6 merge the media modal looks broken when the window height is 600px or less.

Attachments (7)

media-modal-601px.png (361.1 KB) - added by azaozz 11 years ago.
media-modal-600px.png (450.6 KB) - added by azaozz 11 years ago.
25977.diff (4.7 KB) - added by Joen 11 years ago.
media-modal-first-breakpoint.png (96.1 KB) - added by Joen 11 years ago.
media-modal-second-breakpoint.png (71.9 KB) - added by Joen 11 years ago.
25977.2.diff (3.1 KB) - added by Joen 11 years ago.
landscape.png (38.5 KB) - added by Joen 11 years ago.

Download all attachments as: .zip

Change History (17)

#1 @azaozz
11 years ago

At 601px:

At 600px:

#2 @azaozz
11 years ago

  • Component changed from General to Administration
  • Keywords ui-focus added
  • Summary changed from The media modal is broken in smaller windows to MP6: the media modal is broken in smaller windows

@Joen
11 years ago

#3 @Joen
11 years ago

  • Cc asmussen@… added
  • Keywords has-patch added; needs-patch removed

Attached patch with a refactor of the media modal responsive code:

  • changed load order so larger breakpoint would be before smaller breakpoint
  • changed back some of the responsive code to use absolute positioning rather than floats, to fix some overflow issues
  • removed the max-height media query so that desktop browsers can also benefit from the responsive code and not just (by todays standards) small smartphones
Last edited 11 years ago by Joen (previous) (diff)

#4 @iammattthomas
11 years ago

In 26219:

Improvements to the media uploader at responsive sizes:

  • Change load order so larger breakpoint loads before smaller breakpoint.
  • Use absolute positioning rather than floats, to fix some overflow issues.
  • Remove the max-height media query so desktop browsers benefit from the responsive styles.
  • Reset text inputs to 16px so iOS doesn't force zoom.
  • Adjust the position of the close button so it doesn't overlap the Create Gallery link.

See #25977. Props joen.

#5 @iammattthomas
11 years ago

Thanks, Joen. I've left this ticket open because we've still got some problems when in landscape mode -- if the viewport is sufficiently wider than it is tall, scrolling the list of images becomes very difficult and the Insert button can become hidden. The design of the media uploader could really benefit from a more comprehensive re-think at mobile sizes, but I think a few more tweaks for landscape would make it more usable.

#6 @iammattthomas
11 years ago

In 26229:

Move media uploader responsive styles from wp-admin.css to media-views.css; clean up duplicated media queries. See #25977.

@Joen
11 years ago

@Joen
11 years ago

#7 @Joen
11 years ago

Replying to iammattthomas:

I've taken a second stab at the queries:

  • Merged the 782 and 500 width queries into a single 640px query. For the layout we're trying to create, this appeared to work the best.
  • At this breakpoint, the full-bleed modal code that removes the drop shadow goes into effect, adding a fair bit of room and making sure the Insert button is on the screen.
  • For only landscape views, the modal tabs (which when responsive are on top) are shown in a single line.

Looks like this in landscape now:

http://core.trac.wordpress.org/raw-attachment/ticket/25977/landscape.png

Last edited 11 years ago by Joen (previous) (diff)

#8 @ocean90
11 years ago

  • Keywords needs-refresh added

#9 @matt
11 years ago

  • Priority changed from normal to highest omg bbq
  • Severity changed from normal to major

#10 @iammattthomas
11 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Trac missed my commit of Joen's latest patch in r26250. While the media uploader still has some issues on mobile, I think it's going to take a new design for the uploader to solve some of those problems. At any rate, the issue described in this ticket when the window height is 600px or less has been solved, so I'm marking this as fixed.

Note: See TracTickets for help on using tickets.