Skip to content

EspoCRM – Open Source CRM Application

drag ui impr

Yuri Kuznetsovba78ab7eb739
diff --git a/client/src/views/record/list-tree.js b/client/src/views/record/list-tree.js
index 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.less
index 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;
+ }
}
}
}