WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 7 months ago

#28906 closed defect (bug) (duplicate)

Can't switch back from media library list view to grid view on small screens

Reported by: knutsp Owned by:
Milestone: Priority: normal
Severity: major Version: 4.0
Component: Media Keywords: has-patch
Focuses: ui, administration Cc:

Description

As per Helen's comment https://core.trac.wordpress.org/ticket/24716#comment:127

Using Firefox inspector I see

load-styles.php:3
@media screen and (max-width: 782px) {
.view-switch { display: none; }
}

Removing this rule reveals the switch at the bottom right, but it becomes misplaced and looks ugly. I guess it should stay at the top.

Attachments (1)

28906.diff (306 bytes) - added by knutsp 7 months ago.
Brings the .view-switch back, but not nice

Download all attachments as: .zip

Change History (5)

comment:1 @SergeyBiryukov8 months ago

  • Milestone changed from Awaiting Review to 4.0

comment:2 @knutsp8 months ago

Related: #28946

@knutsp7 months ago

Brings the .view-switch back, but not nice

comment:3 @knutsp7 months ago

  • Keywords has-patch added
  • Severity changed from normal to major

List tables must have the .view-switch even on mobile screens, especially on upload.php, because the new grid view has a visible .view-switch.

The other solution is to remove the .view-switch on the new media grid, making it the only available view on mobile screens.

Please help sort out what solution is the best. This patch is just a start.

Beta4 is out, and RC1 coming soon. This is now a trap with no escape, while on mobile.

comment:4 @helen7 months ago

  • Milestone 4.0 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Will handle in #28946.

Note: See TracTickets for help on using tickets.