Media modal: fix reordering of the thumbnails while creating or editing a gallery, props avryl, fixes #29606 for trunk.
Built from https://develop.svn.wordpress.org/trunk@29876 git-svn-id: http://core.svn.wordpress.org/trunk@29633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
20cfcbf86d
commit
7f2f3dcb5d
|
@ -1426,18 +1426,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment {
|
.media-selection .attachment {
|
||||||
width: 48px;
|
width: 40px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 4px;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment .thumbnail {
|
.media-selection .attachment .thumbnail {
|
||||||
top: 4px;
|
top: 0;
|
||||||
left: 4px;
|
left: 0;
|
||||||
bottom: 4px;
|
bottom: 0;
|
||||||
right: 4px;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment .icon {
|
.media-selection .attachment .icon {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1426,18 +1426,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment {
|
.media-selection .attachment {
|
||||||
width: 48px;
|
width: 40px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 4px;
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment .thumbnail {
|
.media-selection .attachment .thumbnail {
|
||||||
top: 4px;
|
top: 0;
|
||||||
right: 4px;
|
right: 0;
|
||||||
bottom: 4px;
|
bottom: 0;
|
||||||
left: 4px;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.media-selection .attachment .icon {
|
.media-selection .attachment .icon {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5503,10 +5503,6 @@
|
||||||
// If the `collection` has a `comparator`, disable sorting.
|
// If the `collection` has a `comparator`, disable sorting.
|
||||||
disabled: !! collection.comparator,
|
disabled: !! collection.comparator,
|
||||||
|
|
||||||
// Prevent attachments from being dragged outside the bounding
|
|
||||||
// box of the list.
|
|
||||||
containment: this.$el,
|
|
||||||
|
|
||||||
// Change the position of the attachment as soon as the
|
// Change the position of the attachment as soon as the
|
||||||
// mouse pointer overlaps a thumbnail.
|
// mouse pointer overlaps a thumbnail.
|
||||||
tolerance: 'pointer',
|
tolerance: 'pointer',
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue