Adjust assistant entry anchor for mobile FAB

This commit is contained in:
jxxghp
2026-06-27 21:39:05 +08:00
parent ee187a1c75
commit 8edbfa0b0e

View File

@@ -331,6 +331,9 @@ function getFabAnchorRect() {
const botRect = bot?.getBoundingClientRect()
const triggerRect = trigger?.getBoundingClientRect()
// 小屏下触发热区留白更明显,气泡按机器人可见图形定位会更贴近。
if (isMobileFabViewport() && botRect && botRect.width > 0 && botRect.height > 0) return botRect
if (triggerRect && triggerRect.width > 0 && triggerRect.height > 0) return triggerRect
if (botRect && botRect.width > 0 && botRect.height > 0) return botRect