diff --git a/src/browser/js/app/editor/edit-objects.js b/src/browser/js/app/editor/edit-objects.js index ea40e2c3..17235c60 100644 --- a/src/browser/js/app/editor/edit-objects.js +++ b/src/browser/js/app/editor/edit-objects.js @@ -153,8 +153,8 @@ var editObject = function(container, data, refresh){ } list.sortable({ - forcePlaceholderSize: true, items: '.sortables', + placeholder: "sortable-placeholder btn small", start:function(){$(this).sortable( "refreshPositions" )}, update: function(e,ui){ var prevIndex = $(ui.item).attr('data-index') @@ -208,9 +208,9 @@ var editObject = function(container, data, refresh){ } list.sortable({ - start:function(){$(this).sortable( "refreshPositions" )}, - forcePlaceholderSize: true, items: '.sortables', + placeholder: "sortable-placeholder btn small", + start:function(){$(this).sortable( "refreshPositions" )}, update: function(e,ui){ var prevIndex = $(ui.item).attr('data-index') var newIndex = $(ui.item).index() diff --git a/src/browser/scss/_editor.scss b/src/browser/scss/_editor.scss index 7492144c..a5357219 100644 --- a/src/browser/scss/_editor.scss +++ b/src/browser/scss/_editor.scss @@ -73,9 +73,17 @@ flex-direction: column; ul { padding: 1rem 2rem!important; + overflow: auto; li:not(:last-child) { margin-bottom: 2rem!important; } + .sortable-placeholder { + background: transparent; + &:after { + content:"|"; + color: transparent; + } + } } } .checkbox {