EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
drag ui impr
Yuri Kuznetsovba78ab7eb739
diff --git a/client/src/views/record/list-tree.js b/client/src/views/record/list-tree.jsindex 16681b2b8e..e187805d3a 100644--- a/client/src/views/record/list-tree.js+++ b/client/src/views/record/list-tree.js@@ -376,6 +376,8 @@ class ListTreeRecordView extends ListRecordView {/** @type {Map<HTMLElement, number>} */let levelMap;/** @type {HTMLElement|null} */+ let movedHandle = null;+ /** @type {HTMLElement|null} */let movedLink = null;/** @type {HTMLElement|null} */let movedFromLi = null;@@ -430,8 +432,9 @@ class ListTreeRecordView extends ListRecordView {rows.sort((a, b) => levelMap.get(b) - levelMap.get(a));this.movedId = event.source.dataset.id;- movedLink = event.originalSource;- movedFromLi = movedLink.parentElement.parentElement;+ movedHandle = event.originalSource;+ movedFromLi = movedHandle.parentElement.parentElement;+ movedLink = movedHandle.parentElement.querySelector(`:scope > a.link`);movedLink.classList.add('text-info');});@@ -600,7 +603,7 @@ class ListTreeRecordView extends ListRecordView {this.movedId = null;- movedLink = null;+ movedHandle = null;movedFromLi = null;levelMap = undefined;overParentId = null;diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.lessindex 72ee23f915..190a938a20 100644--- a/frontend/less/espo/custom.less+++ b/frontend/less/espo/custom.less@@ -3001,6 +3001,10 @@ table.table td.cell .html-container {font-size: var(--12px);cursor: grab;++ &:active {+ cursor: grabbing;+ }}}}