Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(workbench): dismiss Show Page share popover on outside tap

cyhbe660aa56270
diff --git a/ui/src/components/workbench/ShowPageShareControl.tsx b/ui/src/components/workbench/ShowPageShareControl.tsx
index edaa761f2..3f5c5b640 100644
--- a/ui/src/components/workbench/ShowPageShareControl.tsx
+++ b/ui/src/components/workbench/ShowPageShareControl.tsx
@@ -101,8 +101,13 @@ export const ShowPageShareControl: React.FC<{
}
};
+ // modal: the popover floats over the Show Page iframe; without it an outside
+ // tap lands inside the iframe (a separate browsing context) and never reaches
+ // the parent document, so Radix can't detect it to dismiss. modal adds a
+ // viewport guard above the iframe that captures the tap (mobile, where the
+ // iframe fills most of the screen, hit this; desktop has parent chrome around).
return (
- <Popover open={open} onOpenChange={handleOpenChange}>
+ <Popover open={open} onOpenChange={handleOpenChange} modal>
<PopoverTrigger asChild>
<Button
type="button"