fix: bind tooltip opens leftward inside sidebar (no longer covered by chat pane); hover area enlarged to 22x22 rounded rect

This commit is contained in:
Aisland
2026-08-19 02:11:58 +08:00
parent 6ac51d9986
commit e67f7fceec
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
var cs = getComputedStyle(b);
var c4 = getComputedStyle(b.querySelector('.dsh-wt_bindCircles'), '::before');
var aft = getComputedStyle(b, '::after');
return { w: cs.width, h: cs.height, color: cs.color, circleW: c4.width, circleBorder: c4.borderTopWidth, circleFill: c4.backgroundColor, tip: aft.content, hoverBg: cs.backgroundColor };
return { w: cs.width, h: cs.height, radius: cs.borderRadius, color: cs.color, circleW: c4.width, circleBorder: c4.borderTopWidth, circleFill: c4.backgroundColor, tip: aft.content, tipRight: aft.right, tipLeft: aft.left, hoverBg: cs.backgroundColor };
};
// 未绑定态
out.unbound = read(btn);