The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: styles in links
Jonathan Summers-Muir9252f4debc8f
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsxindex f9f601d1bf0..97c2a89408f 100644--- a/packages/ui/src/components/Command/Command.utils.tsx+++ b/packages/ui/src/components/Command/Command.utils.tsx@@ -178,7 +178,7 @@ type CommandPrimitiveItemElement = React.ElementRef<typeof CommandPrimitive.Itemtype CommandPrimitiveItemProps = React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>export interface CommandItemProps extends CommandPrimitiveItemProps {- type: 'link' | 'command'+ type: 'link' | 'block-link' | 'command'}export const CommandItem = React.forwardRef<CommandPrimitiveItemElement, CommandItemProps>(@@ -186,42 +186,54 @@ export const CommandItem = React.forwardRef<CommandPrimitiveItemElement, Command<CommandPrimitive.Itemref={ref}className={cn(- type === 'link'+ 'cursor-default',+ 'select-none',+ 'items-center',+ 'rounded-md',+ 'text-sm',+ 'group',+ 'py-3',+ 'text-scale-1100',+ 'relative',+ 'flex',+ type === 'block-link'? `- bg-scale-300/90+ bg-[#fbfcfd]/90+ dark:bg-[#232323]/90+ border+ border-[#ddd]/90+ dark:border-[#282828]/90backdrop-filterbackdrop-blur-md- text-scale-1100 relative flex-- cursor-default select-none- items-center rounded-md- py-3 px-5 text-sm+ px-5transition-alloutline-none- aria-selected:bg-scale-300- aria-selected:border-[#ccc]- dark:aria-selected:bg-[#323232]- dark:aria-selected:border-[#323232]+ aria-selected:border-[#ccc]+ dark:aria-selected:border-[#323232]+ aria-selected:bg-[#f1f3f5]/90+ dark:aria-selected:bg-[#323232]aria-selected:shadow-smaria-selected:scale-[100.3%]- group+ data-[disabled]:pointer-events-none data-[disabled]:opacity-50`+ : type === 'link'+ ? `+ px-2+ backdrop-filter+ backdrop-blur-md+ transition-all+ outline-none+ aria-selected:bg-[#f1f3f5]/90+ dark:aria-selected:bg-[#323232]data-[disabled]:pointer-events-none data-[disabled]:opacity-50`: `- py-3 px-2- text-scale-1100- relative flex- cursor-default select-none items-center- rounded-md text-sm outline-none-- aria-selected:bg-scale-300-- dark:aria-selected:bg-[#323232]/80-- aria-selected:backdrop-filter- aria-selected:backdrop-blur-md- data-[disabled]:pointer-events-none- data-[disabled]:opacity-50- `,+ px-2+ aria-selected:bg-scale-300+ dark:aria-selected:bg-[#323232]/80+ aria-selected:backdrop-filter+ aria-selected:backdrop-blur-md+ data-[disabled]:pointer-events-none+ data-[disabled]:opacity-50+ `,className)}{...props}diff --git a/packages/ui/src/components/Command/DocsSearch.tsx b/packages/ui/src/components/Command/DocsSearch.tsxindex faa0e0f7630..967cec0b250 100644--- a/packages/ui/src/components/Command/DocsSearch.tsx+++ b/packages/ui/src/components/Command/DocsSearch.tsx@@ -158,7 +158,7 @@ const DocsSearch = () => {forceMountkey={`${page.meta.title}-item-index-${i}`}value={`${page.meta.title}-item-index-${i}`}- type="link"+ type="block-link"onSelect={() => {// TODO: replace with Next.js router/Link when cross-project link logic solvedwindow.location.assign(`/docs/${page.path}`)@@ -196,7 +196,7 @@ const DocsSearch = () => {}}key={`${page.meta.title}__${section.heading}-item-index-${i}`}value={`${page.meta.title}__${section.heading}-item-index-${i}`}- type="link"+ type="block-link"><div className="grow flex gap-3 items-center"><IconContainer>