-import Sortable from "sortablejs";
+import {Sortable, MultiDrag} from "sortablejs";
// Auto sort control
const sortOperations = {
this.input = elem.querySelector('[book-sort-input]');
const initialSortBox = elem.querySelector('.sort-box');
+ Sortable.mount(new MultiDrag());
this.setupBookSortable(initialSortBox);
this.setupSortPresets();
onSort: this.updateMapInput.bind(this),
dragClass: 'bg-white',
ghostClass: 'primary-background-light',
+ multiDrag: true,
+ multiDragKey: 'CTRL',
+ selectedClass: 'sortable-selected',
});
}
}
.entity-list-item > span:first-child {
align-self: flex-start;
}
+ .sortable-selected .entity-list-item, .sortable-selected .entity-list-item:hover {
+ outline: 1px dotted var(--color-primary);
+ background-color: var(--color-primary-light) !important;
+ }
.entity-list-item > div {
display: block;
flex: 1;