Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

style: update `ExpandingTextArea` focus styles (#37935)

Taishi0d15e7e0e269
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
index f06425388fb..58c954f9a09 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
@@ -97,7 +97,7 @@ const AssistantChatFormComponent = forwardRef<HTMLFormElement, FormProps>(
ref={formRef}
{...props}
onSubmit={handleSubmit}
- className={cn('relative overflow-hidden', className)}
+ className={cn('relative', className)}
>
{sqlSnippets && sqlSnippets.length > 0 && (
<SnippetRow
diff --git a/packages/ui/src/components/shadcn/ui/text-area.tsx b/packages/ui/src/components/shadcn/ui/text-area.tsx
index 3966b409a4e..3c24ef458c0 100644
--- a/packages/ui/src/components/shadcn/ui/text-area.tsx
+++ b/packages/ui/src/components/shadcn/ui/text-area.tsx
@@ -11,7 +11,7 @@ const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(
return (
<textarea
className={cn(
- 'flex min-h-10 w-full rounded-md border border-control bg-control px-3 py-2 text-base md:text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-foreground-muted',
+ 'flex min-h-10 w-full rounded-md border border-control focus:border-control bg-control px-3 py-2 text-base md:text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-foreground-muted',
'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-background-control focus-visible:ring-offset-2 focus-visible:ring-offset-foreground-muted disabled:cursor-not-allowed disabled:opacity-50',
...customClasses,
className