Skip to content

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

fix: mobile search width (#20978)

hallidayo5111de05600b
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsx
index 4cddef087d5..49e6bb6cac5 100644
--- a/packages/ui/src/components/Command/Command.utils.tsx
+++ b/packages/ui/src/components/Command/Command.utils.tsx
@@ -69,6 +69,7 @@ export const CommandDialog = ({ children, onKeyDown, page, ...props }: CommandDi
'!border-overlay/90',
'transition ease-out',
'place-self-start mx-auto top-24',
+ 'max-w-[calc(100vw-60px)] xs:max-w-[50%]',
animateBounce ? 'scale-[101.5%]' : 'scale-100'
)}
>
@@ -233,13 +234,13 @@ export const CommandItem = React.forwardRef<CommandPrimitiveItemElement, Command
aria-selected:scale-[100.3%]
data-[disabled]:pointer-events-none data-[disabled]:opacity-50`
: type === 'link'
- ? `
+ ? `
px-2
transition-all
outline-none
aria-selected:bg-overlay-hover/90
data-[disabled]:pointer-events-none data-[disabled]:opacity-50`
- : `
+ : `
px-2
aria-selected:bg-overlay-hover/80
aria-selected:backdrop-filter