Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(desktop-app): r1-l3 clarify which axis boundsSelector confines

Diego Zacarias72942bf24a1a
diff --git a/desktop-app/ui/src/hooks/useFlyoutPosition.ts b/desktop-app/ui/src/hooks/useFlyoutPosition.ts
index 611b5cd91..8232a7ee9 100644
--- a/desktop-app/ui/src/hooks/useFlyoutPosition.ts
+++ b/desktop-app/ui/src/hooks/useFlyoutPosition.ts
@@ -8,9 +8,11 @@ type UseFlyoutPositionArgs = {
flyoutRef: RefObject<HTMLElement | null>
open: boolean
placement: FlyoutPlacement
- // The confining ancestor. Its rect bounds the flyout horizontally (for
- // 'right-of') / horizontally (for 'below'); the other axis uses the viewport.
- // Defaults to the right-docked chat drawer, whose ancestors clip overflow.
+ // The confining ancestor. Its rect confines the flyout on the horizontal
+ // axis (left/right) only; the vertical axis always uses the viewport,
+ // whatever the placement — placement flips which side the flyout opens to,
+ // not which axis the ancestor bounds. Defaults to the right-docked chat
+ // drawer, whose ancestors clip overflow.
boundsSelector?: string
gap?: number
inset?: number