Add Linux-specific padding for toolbox and clean up drag indicator calculations

This commit is contained in:
mr. M
2025-01-31 23:54:26 +01:00
parent d81745eef2
commit 4975ff6fdc
2 changed files with 5 additions and 2 deletions

View File

@@ -767,13 +767,13 @@
const separation = 8;
const middleY = targetTab.screenY + rect.height / 2;
const indicator = this.dragIndicator;
let top=0;
let top = 0;
if (event.screenY > middleY) {
top = rect.top + rect.height + 'px';
} else {
top = rect.top + 'px';
}
indicator.style.setProperty('--indicator-left', rect.left + (separation/2) + 'px');
indicator.style.setProperty('--indicator-left', rect.left + separation / 2 + 'px');
indicator.style.setProperty('--indicator-width', rect.width - separation + 'px');
indicator.style.top = top;
} else {