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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(ui): keep long dialog titles within bounds (#2932)
Call White319eaea93cb0
diff --git a/ui/src/components/onboarding/onboarding-providers.css b/ui/src/components/onboarding/onboarding-providers.cssindex 93bfe9c37..f9a148483 100644--- a/ui/src/components/onboarding/onboarding-providers.css+++ b/ui/src/components/onboarding/onboarding-providers.css@@ -446,6 +446,7 @@--obs-row-radius: 10px;width: min(var(--obs-dialog-w), calc(100vw - 32px));+ min-width: 0;height: var(--obs-dialog-h);max-height: calc(100dvh - 48px);border: 1px solid var(--border);@@ -463,6 +464,9 @@}.setup-add-title {+ min-width: 0;+ flex: 1 1 auto;+ overflow-wrap: anywhere;font-size: 16px;font-weight: 600;line-height: 1.3;diff --git a/ui/src/components/settings/models/modelHubSurface.css b/ui/src/components/settings/models/modelHubSurface.cssindex 3d4e794dd..eae10882f 100644--- a/ui/src/components/settings/models/modelHubSurface.css+++ b/ui/src/components/settings/models/modelHubSurface.css@@ -683,22 +683,31 @@--model-hub-add-sub-width: 620px;width: min(var(--model-hub-add-sub-width), calc(100vw - 32px));max-width: var(--model-hub-add-sub-width);+ min-width: 0;border-radius: 14px;}.model-hub-add-sub-head {--model-hub-add-sub-head-height: 72px;- height: var(--model-hub-add-sub-head-height);+ min-height: var(--model-hub-add-sub-head-height);+ height: auto;padding: 16px 20px;gap: 4px;}.model-hub-add-sub-title {--model-hub-add-sub-title-size: 15px;+ min-width: 0;+ flex: 1 1 auto;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-add-sub-title-size);}.model-hub-add-sub-subtitle {--model-hub-add-sub-subtitle-size: 10.5px;+ min-width: 0;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-add-sub-subtitle-size);}.model-hub-add-sub-close {@@ -785,6 +794,7 @@--model-hub-add-key-radius: 14px;width: min(var(--model-hub-add-key-width), calc(100vw - 32px));max-width: var(--model-hub-add-key-width);+ min-width: 0;border-radius: var(--model-hub-add-key-radius);}@@ -798,10 +808,17 @@}.model-hub-add-key-title {--model-hub-add-key-title-size: 15px;+ min-width: 0;+ flex: 1 1 auto;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-add-key-title-size);}.model-hub-add-key-subtitle {--model-hub-add-key-subtitle-size: 10.5px;+ min-width: 0;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-add-key-subtitle-size);}.model-hub-add-key-body {@@ -1104,6 +1121,8 @@.model-hub-route-title {--model-hub-route-title-size: 15px;min-width: 0;+ flex: 1 1 auto;+ white-space: normal;overflow-wrap: anywhere;font-size: var(--model-hub-route-title-size);}@@ -1702,6 +1721,7 @@--model-hub-guard-width: 520px;--model-hub-guard-radius: 14px;width: min(var(--model-hub-guard-width), calc(100vw - 32px));+ min-width: 0;gap: 0;border-radius: var(--model-hub-guard-radius);box-shadow: var(--model-hub-dialog-shadow);@@ -1710,6 +1730,7 @@--model-hub-guard-head-gap: 4px;--model-hub-guard-head-padding-x: 20px;--model-hub-guard-head-padding-y: 16px;+ min-width: 0;padding: var(--model-hub-guard-head-padding-y) var(--model-hub-guard-head-padding-x);display: flex;flex-direction: column;@@ -1718,6 +1739,10 @@}.model-hub-guard-title {--model-hub-guard-title-size: 15px;+ min-width: 0;+ flex: 1 1 auto;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-guard-title-size);font-weight: 700;}@@ -3458,6 +3483,9 @@}.model-hub-catalog-title {--model-hub-catalog-title-size: 18px;+ min-width: 0;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-catalog-title-size);}@@ -3609,6 +3637,9 @@}.model-hub-model-editor-title {--model-hub-model-title-size: 18px;+ min-width: 0;+ white-space: normal;+ overflow-wrap: anywhere;font-size: var(--model-hub-model-title-size);}diff --git a/ui/src/components/steps/UserList.tsx b/ui/src/components/steps/UserList.tsxindex ee43444dc..a2d66f93b 100644--- a/ui/src/components/steps/UserList.tsx+++ b/ui/src/components/steps/UserList.tsx@@ -419,18 +419,18 @@ const ActiveCodeBox: React.FC<{const Modal: React.FC<{ title: string; onClose: () => void; children: React.ReactNode }> = ({ title, onClose, children }) => (<div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 px-4"+ className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 px-4 py-4"role="dialog"aria-modal="true"aria-label={title}onClick={onClose}><div- className="flex max-h-[80vh] w-full max-w-2xl flex-col overflow-hidden rounded-2xl border border-border bg-surface-2 shadow-[0_42px_80px_-42px_rgba(0,0,0,0.85)]"+ className="flex min-w-0 max-h-[calc(100dvh-2rem)] w-full max-w-2xl flex-col overflow-y-auto rounded-2xl border border-border bg-surface-2 shadow-[0_42px_80px_-42px_rgba(0,0,0,0.85)]"onClick={(e) => e.stopPropagation()}>- <div className="flex items-center justify-between border-b border-border px-4 py-3">- <h4 className="text-base font-semibold text-foreground">{title}</h4>+ <div className="flex min-w-0 items-center justify-between gap-3 border-b border-border px-4 py-3">+ <h4 className="min-w-0 flex-1 break-words text-base font-semibold text-foreground [overflow-wrap:anywhere]">{title}</h4><buttontype="button"onClick={onClose}diff --git a/ui/src/components/ui/dialog.test.tsx b/ui/src/components/ui/dialog.test.tsxindex 4d323d77f..d42156140 100644--- a/ui/src/components/ui/dialog.test.tsx+++ b/ui/src/components/ui/dialog.test.tsx@@ -4,10 +4,39 @@ import { act, cleanup, render, screen } from '@testing-library/react';import { afterEach, describe, expect, it, vi } from 'vitest';import { RouteSurfaceActiveContext } from '../../lib/routeSurfaceActivity';-import { Dialog, DialogContent, DialogTitle } from './dialog';+import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from './dialog';afterEach(cleanup);+describe('DialogContent layout safety', () => {+ it('wraps long unbroken titles without letting modal controls overflow', () => {+ const title = 'Delete AVIBE_UI_REGRESSION_STANDARD_20260810_1234567890_abcdefghijklmnopqrstuvwxyz';+ render(+ <Dialog open>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>{title}</DialogTitle>+ <DialogDescription>{title}</DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <button type="button">Cancel</button>+ <button type="button">Delete</button>+ </DialogFooter>+ </DialogContent>+ </Dialog>,+ );++ const dialog = screen.getByRole('dialog');+ const heading = screen.getByRole('heading', { name: title });+ expect(dialog.className).toContain('min-w-0');+ expect(heading.className).toContain('min-w-0');+ expect(heading.className).toContain('break-words');+ expect(heading.className).toContain('[overflow-wrap:anywhere]');+ expect(heading.className).toContain('pr-6');+ expect(screen.getByRole('button', { name: 'Delete' })).toBeTruthy();+ });+});+describe('DialogContent mobile sheet', () => {it('provides the shared tall height and bottom-up motion', () => {render(diff --git a/ui/src/components/ui/dialog.tsx b/ui/src/components/ui/dialog.tsxindex 21e2ae805..1c85fb69e 100644--- a/ui/src/components/ui/dialog.tsx+++ b/ui/src/components/ui/dialog.tsx@@ -52,7 +52,7 @@ export const DialogContent = React.forwardRef<// max-w (e.g. max-w-sm) still applies on desktop; max-md:max-w-none forces// the full-width sheet on phones. Content-heavy callers can opt into a// resolved 90dvh height without re-declaring the shared sheet behavior.- 'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg max-h-[calc(100dvh-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-card p-6 shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 max-md:left-0 max-md:right-0 max-md:top-auto max-md:bottom-0 max-md:w-full max-md:max-w-none max-md:max-h-[90dvh] max-md:translate-x-0 max-md:translate-y-0 max-md:rounded-2xl max-md:rounded-b-none max-md:p-5 max-md:pb-[calc(1.5rem+env(safe-area-inset-bottom))] max-md:data-[state=open]:zoom-in-100 max-md:data-[state=closed]:zoom-out-100 max-md:data-[state=open]:slide-in-from-bottom max-md:data-[state=closed]:slide-out-to-bottom max-md:data-[state=open]:duration-300 max-md:data-[state=closed]:duration-200',+ 'fixed left-1/2 top-1/2 z-50 grid min-w-0 w-full max-w-lg max-h-[calc(100dvh-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl border border-border bg-card p-6 shadow-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0 data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95 max-md:left-0 max-md:right-0 max-md:top-auto max-md:bottom-0 max-md:w-full max-md:max-w-none max-md:max-h-[90dvh] max-md:translate-x-0 max-md:translate-y-0 max-md:rounded-2xl max-md:rounded-b-none max-md:p-5 max-md:pb-[calc(1.5rem+env(safe-area-inset-bottom))] max-md:data-[state=open]:zoom-in-100 max-md:data-[state=closed]:zoom-out-100 max-md:data-[state=open]:slide-in-from-bottom max-md:data-[state=closed]:slide-out-to-bottom max-md:data-[state=open]:duration-300 max-md:data-[state=closed]:duration-200',mobileSheetHeight === 'tall' && 'max-md:h-[90dvh]',className)}@@ -111,12 +111,12 @@ export const DialogSurfaceContent = React.forwardRef<DialogSurfaceContent.displayName = 'DialogSurfaceContent';export const DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (- <div className={cn('flex flex-col gap-1.5 text-left', className)} {...props} />+ <div className={cn('flex min-w-0 flex-col gap-1.5 text-left', className)} {...props} />);DialogHeader.displayName = 'DialogHeader';export const DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (- <div className={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />+ <div className={cn('flex min-w-0 flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...props} />);DialogFooter.displayName = 'DialogFooter';@@ -124,7 +124,7 @@ export const DialogTitle = React.forwardRef<React.ComponentRef<typeof DialogPrimitive.Title>,React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>>(({ className, ...props }, ref) => (- <DialogPrimitive.Title ref={ref} className={cn('text-lg font-semibold leading-tight', className)} {...props} />+ <DialogPrimitive.Title ref={ref} className={cn('min-w-0 break-words [overflow-wrap:anywhere] pr-6 text-lg font-semibold leading-tight', className)} {...props} />));DialogTitle.displayName = DialogPrimitive.Title.displayName;@@ -132,6 +132,6 @@ export const DialogDescription = React.forwardRef<React.ComponentRef<typeof DialogPrimitive.Description>,React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>>(({ className, ...props }, ref) => (- <DialogPrimitive.Description ref={ref} className={cn('text-sm text-muted', className)} {...props} />+ <DialogPrimitive.Description ref={ref} className={cn('min-w-0 break-words [overflow-wrap:anywhere] text-sm text-muted', className)} {...props} />));DialogDescription.displayName = DialogPrimitive.Description.displayName;diff --git a/ui/src/components/ui/vault-secret-dialog.tsx b/ui/src/components/ui/vault-secret-dialog.tsxindex ac0911932..cc4159616 100644--- a/ui/src/components/ui/vault-secret-dialog.tsx+++ b/ui/src/components/ui/vault-secret-dialog.tsx@@ -90,13 +90,13 @@ export const VaultSecretDialog: React.FC<{<DialogContent>{/* Accessible name; the visible heading is the branded header below. */}<DialogTitle className="sr-only">{title}</DialogTitle>- <div className="flex items-start gap-3 pr-6">+ <div className="flex min-w-0 items-start gap-3 pr-6"><span className="flex size-10 shrink-0 items-center justify-center rounded-xl bg-accent/15 text-accent-ink"><HeaderIcon className="size-5" /></span>- <div className="flex flex-col gap-0.5">- <span className="text-[15px] font-semibold text-foreground">{title}</span>- <span className="text-xs text-muted">{subtitle}</span>+ <div className="flex min-w-0 flex-1 flex-col gap-0.5">+ <span className="break-words text-[15px] font-semibold text-foreground [overflow-wrap:anywhere]">{title}</span>+ <span className="break-words text-xs text-muted [overflow-wrap:anywhere]">{subtitle}</span></div></div>{notice ?? (diff --git a/ui/src/components/workbench/CreateViaChatDialog.tsx b/ui/src/components/workbench/CreateViaChatDialog.tsxindex 20754e47a..928e55a5d 100644--- a/ui/src/components/workbench/CreateViaChatDialog.tsx+++ b/ui/src/components/workbench/CreateViaChatDialog.tsx@@ -93,14 +93,14 @@ export const CreateViaChatDialog: React.FC<CreateViaChatDialogProps> = ({ kind,return (<div- className="fixed inset-0 z-50 flex items-center justify-center bg-[#080812F0] px-4"+ className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-[#080812F0] px-4 py-4"role="dialog"aria-modal="true"aria-label={t('harness.createDialog.title')}onClick={onClose}><div- className="flex w-full max-w-[500px] flex-col items-center gap-5 rounded-2xl border border-violet/30 bg-surface p-7 shadow-[0_24px_48px_-6px_rgba(0,0,0,0.8),var(--shadow-glow-lg-violet)]"+ className="flex min-w-0 max-h-[calc(100dvh-2rem)] w-full max-w-[500px] flex-col items-center gap-5 overflow-y-auto rounded-2xl border border-violet/30 bg-surface p-7 shadow-[0_24px_48px_-6px_rgba(0,0,0,0.8),var(--shadow-glow-lg-violet)]"onClick={(e) => e.stopPropagation()}><button@@ -117,7 +117,7 @@ export const CreateViaChatDialog: React.FC<CreateViaChatDialogProps> = ({ kind,<Sparkles className="size-[30px]" /></div>- <div className="flex flex-col gap-1.5 text-center">+ <div className="flex min-w-0 flex-col gap-1.5 text-center"><div className="text-[20px] font-bold text-foreground">{t('harness.createDialog.title')}</div><div className="text-[12px] italic text-muted">{t('harness.createDialog.subtitle')}</div></div>diff --git a/ui/src/components/workbench/NewAgentDialog.tsx b/ui/src/components/workbench/NewAgentDialog.tsxindex b73c23f94..7fb3d01d3 100644--- a/ui/src/components/workbench/NewAgentDialog.tsx+++ b/ui/src/components/workbench/NewAgentDialog.tsx@@ -204,18 +204,18 @@ export const NewAgentDialog: React.FC<NewAgentDialogProps> = ({ open, onClose, oreturn (<><div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60"+ className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/60 px-4 py-4"role="dialog"aria-modal="true"onClick={onClose}><div- className="flex w-full max-w-[520px] flex-col gap-5 rounded-2xl border border-border-strong bg-surface p-7 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"+ className="flex min-w-0 max-h-[calc(100dvh-2rem)] w-full max-w-[520px] flex-col gap-5 overflow-y-auto rounded-2xl border border-border-strong bg-surface p-7 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"onClick={(e) => e.stopPropagation()}>- <div className="flex items-start justify-between gap-3">- <div>- <h2 className="text-[18px] font-bold text-foreground">{t('agents.create.title')}</h2>+ <div className="flex min-w-0 items-start justify-between gap-3">+ <div className="min-w-0 flex-1">+ <h2 className="break-words text-[18px] font-bold text-foreground [overflow-wrap:anywhere]">{t('agents.create.title')}</h2><p className="mt-1 max-w-[420px] text-[11.5px] leading-relaxed text-muted">{t('agents.create.body')}</p>diff --git a/ui/src/components/workbench/NewProjectDialog.tsx b/ui/src/components/workbench/NewProjectDialog.tsxindex b43237f09..dc2b73c1a 100644--- a/ui/src/components/workbench/NewProjectDialog.tsx+++ b/ui/src/components/workbench/NewProjectDialog.tsx@@ -96,21 +96,21 @@ export const NewProjectDialog: React.FC<NewProjectDialogProps> = ({ onClose, onCreturn (<div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/50"+ className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/50 px-4 py-4"role="dialog"aria-modal="true"aria-label={t('workbench.newProjectDialog.title')}onClick={close}><div- className="flex w-full max-w-md flex-col gap-4 rounded-2xl border border-border-strong bg-surface p-5 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"+ className="flex min-w-0 max-h-[calc(100dvh-2rem)] w-full max-w-md flex-col gap-4 overflow-y-auto rounded-2xl border border-border-strong bg-surface p-5 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"onClick={(e) => e.stopPropagation()}>- <div className="flex items-start gap-3">+ <div className="flex min-w-0 items-start gap-3"><div className="flex size-9 items-center justify-center rounded-lg border border-mint/30 bg-mint/[0.08] text-mint-ink"><Folder className="size-4" /></div>- <div className="flex flex-1 flex-col gap-0.5">+ <div className="flex min-w-0 flex-1 flex-col gap-0.5"><div className="text-[14px] font-bold text-foreground">{t('workbench.newProjectDialog.title')}</div><div className="text-[11.5px] leading-relaxed text-muted">{t('workbench.newProjectDialog.description')}diff --git a/ui/src/components/workbench/RunAgentDialog.tsx b/ui/src/components/workbench/RunAgentDialog.tsxindex 3c988b9e3..d945f1c26 100644--- a/ui/src/components/workbench/RunAgentDialog.tsx+++ b/ui/src/components/workbench/RunAgentDialog.tsx@@ -77,21 +77,21 @@ export const RunAgentDialog: React.FC<RunAgentDialogProps> = ({ agent, onClose }return (<div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4"+ className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/60 px-4 py-4"role="dialog"aria-modal="true"aria-label={t('agents.runDialog.title')}onClick={onClose}><div- className="flex w-full max-w-md flex-col gap-4 rounded-2xl border border-border-strong bg-surface p-5 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"+ className="flex min-w-0 max-h-[calc(100dvh-2rem)] w-full max-w-md flex-col gap-4 overflow-y-auto rounded-2xl border border-border-strong bg-surface p-5 shadow-[0_24px_64px_-12px_rgba(0,0,0,0.6)]"onClick={(e) => e.stopPropagation()}>- <div className="flex items-start gap-3">+ <div className="flex min-w-0 items-start gap-3"><div className="flex size-9 items-center justify-center rounded-lg border border-mint/30 bg-mint-soft text-mint-ink"><Play className="size-4" /></div>- <div className="flex flex-1 flex-col gap-0.5">+ <div className="flex min-w-0 flex-1 flex-col gap-0.5"><div className="text-[14px] font-bold text-foreground">{t('agents.runDialog.title')}</div><div className="text-[11.5px] leading-relaxed text-muted">{t('agents.runDialog.description')}diff --git a/ui/src/components/workbench/VaultsPage.test.tsx b/ui/src/components/workbench/VaultsPage.test.tsxindex 601127ecc..3b5066b37 100644--- a/ui/src/components/workbench/VaultsPage.test.tsx+++ b/ui/src/components/workbench/VaultsPage.test.tsx@@ -247,6 +247,25 @@ describe('PERMISSIONS-013 VaultsPage capability-gated management actions', () =>expect(screen.queryByRole('dialog')).toBeNull();expect(screen.getByRole('list', { name: 'Vaults' })).toBeTruthy();});++ it('keeps long secret names inside the delete confirmation and leaves actions reachable', async () => {+ const user = userEvent.setup();+ const longName = 'AVIBE_UI_REGRESSION_STANDARD_20260810_1234567890_abcdefghijklmnopqrstuvwxyz';+ api.listVaultSecrets.mockResolvedValue({ secrets: [{ ...protectedSecret, name: longName }] });+ renderPage(member);++ const row = (await screen.findByText(longName, { exact: true })).closest('li') as HTMLElement;+ await user.click(within(row).getByRole('button', { name: 'More actions' }));+ await user.click(screen.getByRole('menuitem', { name: 'Delete' }));++ const dialog = await screen.findByRole('dialog');+ const title = within(dialog).getByRole('heading', { name: `Delete "${longName}"?` });+ expect(dialog.className).toContain('min-w-0');+ expect(title.className).toContain('break-words');+ expect(title.className).toContain('[overflow-wrap:anywhere]');+ expect(within(dialog).getByRole('button', { name: /^Delete/ })).toBeTruthy();+ expect(within(dialog).getByRole('button', { name: 'Cancel' })).toBeTruthy();+ });});describe('VaultsPage list discovery', () => {