Skip to content

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

fix(cmdk): hidden text and icon spacing

Greg Richardson7f0dc707b922
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsx
index 9cea7a8f52b..e711b4ce3f1 100644
--- a/packages/ui/src/components/Command/AiCommand.tsx
+++ b/packages/ui/src/components/Command/AiCommand.tsx
@@ -462,7 +462,7 @@ const AiCommand = () => {
forceMount
key={key}
>
- <AiIconAnimation className="mr-2" />
+ <AiIconAnimation />
{question}
</CommandItem>
)
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsx
index 3dd2c47f2ea..60a8b8ea9d2 100644
--- a/packages/ui/src/components/Command/Command.utils.tsx
+++ b/packages/ui/src/components/Command/Command.utils.tsx
@@ -52,8 +52,6 @@ export const CommandDialog = ({ children, onKeyDown, page, ...props }: CommandDi
<Command
className={[
'[&_[cmdk-group]]:px-2 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-scale-800 [&_[cmdk-input]]:h-12',
-
- '[&_[cmdk-item]_svg]:mr-3',
'[&_[cmdk-item]_svg]:h-5',
'[&_[cmdk-item]_svg]:w-5',
'[&_[cmdk-input-wrapper]_svg]:h-5',
@@ -241,7 +239,7 @@ export const CommandItem = React.forwardRef<CommandPrimitiveItemElement, Command
{...props}
>
<div className="w-full flex flex-row justify-between items-center">
- <div className="flex flex-row flex-grow items-center">{children}</div>
+ <div className="flex flex-row gap-2 flex-grow items-center">{children}</div>
{badge}
</div>
</CommandPrimitive.Item>
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index 1cb7d00ee23..360ef5bc421 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -122,8 +122,8 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
}}
forceMount
>
- <AiIconAnimation className="mr-2" />
- <span className="text-transparent bg-clip-text bg-gradient-to-r from-brand-900 to-brand-1100">
+ <AiIconAnimation />
+ <span className="text-brand">
Ask Supabase AI
{search ? (
<>
@@ -255,7 +255,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
<CommandGroup heading="Settings">
<CommandItem type="link" onSelect={() => setPages([...pages, 'Theme'])}>
- <IconMonitor className="mr-2" />
+ <IconMonitor />
Change theme
</CommandItem>
</CommandGroup>
diff --git a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
index ebea019da55..9818db7b865 100644
--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
@@ -228,10 +228,8 @@ const GenerateSQL = () => {
forceMount
key={query.replace(/\s+/g, '_')}
>
- <div className="flex">
- <div>
- <AiIcon />
- </div>
+ <div className="flex flex-row gap-2">
+ <AiIcon />
<p>{query}</p>
</div>
</CommandItem>