mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-07-04 14:01:27 +08:00
Adjust assistant entry anchor for mobile FAB
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user