Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(web): contain overflowing modal inputs in Add Repository dialog (#843) (#844)

Jyotirmya Sharmadfa4cd524c43
diff --git a/packages/ui/src/onboarding/add-repo-wizard.tsx b/packages/ui/src/onboarding/add-repo-wizard.tsx
index 8494f1236..44cbae616 100644
--- a/packages/ui/src/onboarding/add-repo-wizard.tsx
+++ b/packages/ui/src/onboarding/add-repo-wizard.tsx
@@ -263,14 +263,14 @@ export function AddRepoWizard({ adapter, open, onOpenChange }: AddRepoWizardProp
return (
<Dialog open={open} onOpenChange={handleOpenChange}>
- <DialogContent className="sm:max-w-md w-[calc(100vw-2rem)]">
+ <DialogContent className="sm:max-w-md w-[calc(100vw-2rem)] flex flex-col overflow-hidden">
{step === "details" && (
<>
<DialogHeader>
<DialogTitle>Add Repository</DialogTitle>
</DialogHeader>
- <form onSubmit={handleDetailsSubmit} className="space-y-4 py-2">
+ <form onSubmit={handleDetailsSubmit} className="space-y-4 py-2 min-w-0">
<div className="space-y-1.5">
<Label htmlFor="repo-name">Name</Label>
<Input
diff --git a/packages/ui/src/ui/input.tsx b/packages/ui/src/ui/input.tsx
index 5770587d5..477fbb40d 100644
--- a/packages/ui/src/ui/input.tsx
+++ b/packages/ui/src/ui/input.tsx
@@ -7,7 +7,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
<input
type={type}
className={cn(
- "flex h-9 w-full rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] px-3 py-1 text-sm text-[var(--color-text-primary)] transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-accent-primary)] disabled:cursor-not-allowed disabled:opacity-50",
+ "box-border min-w-0 flex h-9 w-full rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] px-3 py-1 text-sm text-[var(--color-text-primary)] transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-accent-primary)] disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
ref={ref}
diff --git a/packages/ui/src/ui/select.tsx b/packages/ui/src/ui/select.tsx
index 208bdd70e..f2c2d55a6 100644
--- a/packages/ui/src/ui/select.tsx
+++ b/packages/ui/src/ui/select.tsx
@@ -16,7 +16,7 @@ const SelectTrigger = React.forwardRef<
<SelectPrimitive.Trigger
ref={ref}
className={cn(
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] px-3 py-2 text-sm text-[var(--color-text-primary)] ring-offset-[var(--color-bg-root)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-primary)] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
+ "box-border min-w-0 flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-[var(--color-border-default)] bg-[var(--color-bg-surface)] px-3 py-2 text-sm text-[var(--color-text-primary)] ring-offset-[var(--color-bg-root)] placeholder:text-[var(--color-text-tertiary)] focus:outline-none focus:ring-1 focus:ring-[var(--color-accent-primary)] disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
className,
)}
{...props}