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(ui): stop workbench list+detail grid from overflowing the viewport (#407)

Call White4dcbe8126670
diff --git a/ui/src/components/workbench/AgentsPage.tsx b/ui/src/components/workbench/AgentsPage.tsx
index ac5beb4b0..572c43047 100644
--- a/ui/src/components/workbench/AgentsPage.tsx
+++ b/ui/src/components/workbench/AgentsPage.tsx
@@ -273,10 +273,12 @@ export const AgentsPage: React.FC = () => {
<div
className={clsx(
'grid gap-5',
- selected ? 'grid-cols-1 lg:grid-cols-[1fr_420px]' : 'grid-cols-1',
+ // `minmax(0,1fr)` + `min-w-0` keep the list column shrinkable; bare
+ // `1fr` would let a long agent row push the fixed detail card off-screen.
+ selected ? 'grid-cols-1 lg:grid-cols-[minmax(0,1fr)_420px]' : 'grid-cols-1',
)}
>
- <div className="flex flex-col gap-4">
+ <div className="flex min-w-0 flex-col gap-4">
{BACKEND_ORDER.map((backend) => {
const items = grouped[backend];
if (!items || items.length === 0) return null;
diff --git a/ui/src/components/workbench/SkillsPage.tsx b/ui/src/components/workbench/SkillsPage.tsx
index 68d8ccd0f..3eb265ed1 100644
--- a/ui/src/components/workbench/SkillsPage.tsx
+++ b/ui/src/components/workbench/SkillsPage.tsx
@@ -333,8 +333,12 @@ export const SkillsPage: React.FC = () => {
</Button>
</div>
) : (
- <div className={clsx('grid gap-5', selected ? 'lg:grid-cols-[1fr_400px]' : 'grid-cols-1')}>
- <div className="flex flex-col gap-4">
+ // `minmax(0,1fr)` (not bare `1fr`) lets the list column shrink below its
+ // content's intrinsic width; otherwise a long row keeps the column from
+ // shrinking and pushes the fixed detail card past the viewport edge. The
+ // list column itself also needs `min-w-0` for the same reason.
+ <div className={clsx('grid gap-5', selected ? 'lg:grid-cols-[minmax(0,1fr)_400px]' : 'grid-cols-1')}>
+ <div className="flex min-w-0 flex-col gap-4">
{scope === 'global' ? (
<div className="flex flex-col gap-2">{renderRows(filtered)}</div>
) : (