mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 09:33:46 +01:00
Media modal/grid: get the proper .attachment width in arrow navigation. Props avryl, see #27423.
git-svn-id: https://develop.svn.wordpress.org/trunk@29379 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5894507b95
commit
281bf20383
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user