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): route CompactSelect className to the Select wrapper (Codex P2)

cyh2f5b644555be
diff --git a/ui/src/components/settings/SettingsPrimitives.tsx b/ui/src/components/settings/SettingsPrimitives.tsx
index 012948210..cb5e890bd 100644
--- a/ui/src/components/settings/SettingsPrimitives.tsx
+++ b/ui/src/components/settings/SettingsPrimitives.tsx
@@ -84,11 +84,14 @@ export const CompactField: React.FC<React.InputHTMLAttributes<HTMLInputElement>>
...props
}) => <Input className={clsx('text-[12px]', className)} {...props} />;
-// Dense settings dropdown — the unified Select at 12px.
+// Dense settings dropdown — the unified Select at 12px. The caller's className
+// sizes the WRAPPER (width/margins), not the inner <select>, so layout classes
+// like w-full / md:max-w-* / min-w-* / mt-1 size the control box and keep the
+// absolutely-positioned chevron aligned.
export const CompactSelect: React.FC<React.SelectHTMLAttributes<HTMLSelectElement>> = ({
className,
...props
-}) => <Select className={clsx('text-[12px]', className)} {...props} />;
+}) => <Select className="text-[12px]" wrapperClassName={className} {...props} />;
type SearchFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
icon?: LucideIcon;