fix: aligning the drag handles better with the node post css changes of the length

This commit is contained in:
Palanikannan1437 2024-03-14 13:15:38 +05:30
parent 15be7eeda3
commit 52b2fbefe1

View File

@ -207,7 +207,7 @@ function DragHandle(options: DragHandleOptions) {
const rect = absoluteRect(node); const rect = absoluteRect(node);
rect.top += (lineHeight - 24) / 2; rect.top += (lineHeight - 20) / 2;
rect.top += paddingTop; rect.top += paddingTop;
// Li markers // Li markers
if (node.matches("ul:not([data-type=taskList]) li, ol li")) { if (node.matches("ul:not([data-type=taskList]) li, ol li")) {