ui: offset track menu to avoid action column

cx
This commit is contained in:
vicrodh committed 2026-01-22 11:41:49 -06:00
1 parent 5162315d41
commit f35f83fbb7
1 file changed
+4 -1
+4 -1
View File
@@ -137,7 +137,10 @@
const menuRect = menuEl.getBoundingClientRect();
const padding = 8;
let left = triggerRect.right - menuRect.width;
// Prefer opening to the left of the trigger so the menu doesn't cover the action column
// (other context menu triggers / buttons in the same vertical column).
const leftPreferred = triggerRect.left - menuRect.width - 10;
let left = leftPreferred;
let top = triggerRect.bottom + 6;
if (left < padding) left = padding;