From 4d68c7c91ad170aeb63f930d96d58b7cd1dd5164 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 11 Oct 2014 23:23:44 +0000 Subject: [PATCH] Media modal: fix reordering of the thumbnails while creating or editing a gallery, props avryl, fixes #29606 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@29876 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/css/media-views.css | 12 ++++++------ src/wp-includes/js/media-views.js | 4 ---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css index e463abfb5c..8b42f70726 100644 --- a/src/wp-includes/css/media-views.css +++ b/src/wp-includes/css/media-views.css @@ -1426,18 +1426,18 @@ } .media-selection .attachment { - width: 48px; + width: 40px; padding: 0; - margin: 0; + margin: 4px; -webkit-box-shadow: none; box-shadow: none; } .media-selection .attachment .thumbnail { - top: 4px; - right: 4px; - bottom: 4px; - left: 4px; + top: 0; + right: 0; + bottom: 0; + left: 0; } .media-selection .attachment .icon { diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js index 439699e484..16389bfda4 100644 --- a/src/wp-includes/js/media-views.js +++ b/src/wp-includes/js/media-views.js @@ -5503,10 +5503,6 @@ // If the `collection` has a `comparator`, disable sorting. 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 // mouse pointer overlaps a thumbnail. tolerance: 'pointer',