Repository navigation
Commit 0fa1497
committed
Media: Fix media modal positioning and spacing on mobile with infinite scroll.
On small screens, the attachment grid in the media modal collapsed to a single
narrow column when infinite scrolling was enabled. The responsive rules for
size and position of attachments grid, toolbar, and wrapper did not account for
the taller media toolbar present when the "load more" button is absent.
Add a `.attachments-browser:not(.has-load-more)` selector to the affected mobile
breakpoints and adjust the toolbar height and grid offset so the attachment grid
fills the modal width and displays multiple items per row, matching the layout
used when infinite scroll is disabled.
Props tyxla, mukesh27, joedolson.
See https://core.trac.wordpress.org/ticket/65564.
git-svn-id: https://develop.svn.wordpress.org/trunk@62955 602fd350-edb4-49c9-b593-d223f7449a821 parent e4cb98d commit 0fa1497
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2635 | 2635 | | |
2636 | 2636 | | |
2637 | 2637 | | |
| 2638 | + | |
2638 | 2639 | | |
2639 | 2640 | | |
2640 | 2641 | | |
| |||
2643 | 2644 | | |
2644 | 2645 | | |
2645 | 2646 | | |
2646 | | - | |
| 2647 | + | |
2647 | 2648 | | |
2648 | 2649 | | |
2649 | 2650 | | |
| 2651 | + | |
2650 | 2652 | | |
2651 | 2653 | | |
2652 | | - | |
| 2654 | + | |
2653 | 2655 | | |
2654 | 2656 | | |
2655 | 2657 | | |
| |||
2956 | 2958 | | |
2957 | 2959 | | |
2958 | 2960 | | |
| 2961 | + | |
2959 | 2962 | | |
2960 | 2963 | | |
2961 | 2964 | | |
| |||
0 commit comments