mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media modal/grid: get the proper .attachment width in arrow navigation. Props avryl, see #27423.
Built from https://develop.svn.wordpress.org/trunk@29379 git-svn-id: http://core.svn.wordpress.org/trunk@29157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8b7beb2378
commit
8fc01225ac
@ -1431,7 +1431,6 @@
|
||||
/**
|
||||
* Spinner
|
||||
*/
|
||||
|
||||
.media-frame .spinner {
|
||||
background: url(../images/spinner.gif) no-repeat;
|
||||
-webkit-background-size: 20px 20px;
|
||||
@ -1653,7 +1652,6 @@
|
||||
/**
|
||||
* Image Editor
|
||||
*/
|
||||
|
||||
.media-modal .imgedit-wrap {
|
||||
position: static;
|
||||
}
|
||||
@ -2138,9 +2136,6 @@
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.media-frame-content .media-toolbar-primary .search,
|
||||
.media-frame-content .media-toolbar-secondary .attachment-filters {
|
||||
|
@ -1431,7 +1431,6 @@
|
||||
/**
|
||||
* Spinner
|
||||
*/
|
||||
|
||||
.media-frame .spinner {
|
||||
background: url(../images/spinner.gif) no-repeat;
|
||||
-webkit-background-size: 20px 20px;
|
||||
@ -1653,7 +1652,6 @@
|
||||
/**
|
||||
* Image Editor
|
||||
*/
|
||||
|
||||
.media-modal .imgedit-wrap {
|
||||
position: static;
|
||||
}
|
||||
@ -2138,9 +2136,6 @@
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
.media-frame-content .media-toolbar-primary .search,
|
||||
.media-frame-content .media-toolbar-secondary .attachment-filters {
|
||||
|
@ -4798,7 +4798,7 @@
|
||||
arrowEvent: function( event ) {
|
||||
var attachment = $('.attachments-browser .attachment'),
|
||||
attachmentsWidth = $('.attachments-browser .attachments').width(),
|
||||
thumbnailWidth = attachment.first().width(),
|
||||
thumbnailWidth = attachment.first().outerWidth(),
|
||||
thumbnailsPerRow = Math.round( attachmentsWidth / thumbnailWidth ),
|
||||
totalThumnails = attachment.length,
|
||||
totalRows = Math.ceil(totalThumnails/thumbnailsPerRow),
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user