mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Issue : UI feature suggestion: drag handles and long press #1772
Resolved #1772
This commit is contained in:
parent
ac6f8e8551
commit
a9be6b17b9
5 changed files with 25 additions and 7 deletions
|
|
@ -26,6 +26,13 @@ BlazeComponent.extendComponent({
|
|||
|
||||
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
|
||||
const $cards = this.$('.js-minicards');
|
||||
|
||||
if(window.matchMedia('(max-width: 1199px)').matches) {
|
||||
$( '.js-minicards' ).sortable({
|
||||
handle: '.handle',
|
||||
});
|
||||
}
|
||||
|
||||
$cards.sortable({
|
||||
connectWith: '.js-minicards:not(.js-list-full)',
|
||||
tolerance: 'pointer',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue