The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(apps): adopt inline code defaults in learn lite-studio and ui-library (#51985)
Danny White8a26dbedd031
diff --git a/apps/learn/components/mdx-components.tsx b/apps/learn/components/mdx-components.tsxindex 6de41586f28..f053977f39a 100644--- a/apps/learn/components/mdx-components.tsx+++ b/apps/learn/components/mdx-components.tsx@@ -129,13 +129,7 @@ const components = {)},code: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (- <code- className={cn(- 'relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm',- className- )}- {...props}- />+ <code className={className} {...props} />),Callout,CopyButton,diff --git a/apps/learn/styles/globals.css b/apps/learn/styles/globals.cssindex bdb2f8d98c6..0da45f49443 100644--- a/apps/learn/styles/globals.css+++ b/apps/learn/styles/globals.css@@ -1,4 +1,5 @@@import 'config/tailwind.config.css';+@import 'config/inline-code.css';@source '../app/**/*.{ts,tsx}';@source './../../../packages/ui/src/**/*.{tsx,ts,js}';diff --git a/apps/learn/styles/mdx.css b/apps/learn/styles/mdx.cssindex 2b54c9738d7..104f51862ce 100644--- a/apps/learn/styles/mdx.css+++ b/apps/learn/styles/mdx.css@@ -13,7 +13,7 @@}[data-rehype-pretty-code-figure] code {- @apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;+ @apply font-mono text-sm grid min-w-full break-words rounded-none border-0 bg-transparent p-0;counter-reset: line;box-decoration-break: clone;}diff --git a/apps/lite-studio/styles/globals.css b/apps/lite-studio/styles/globals.cssindex 9262c2c4c46..66ca84bef0a 100644--- a/apps/lite-studio/styles/globals.css+++ b/apps/lite-studio/styles/globals.css@@ -1,4 +1,5 @@@import 'config/tailwind.config.css';+@import 'config/inline-code.css';@import 'config/typography.css';@source '../app/**/*.{ts,tsx}';diff --git a/apps/ui-library/components/component-preview.tsx b/apps/ui-library/components/component-preview.tsxindex b82881a81a8..2fdba308693 100644--- a/apps/ui-library/components/component-preview.tsx+++ b/apps/ui-library/components/component-preview.tsx@@ -41,11 +41,7 @@ export function ComponentPreview({if (!Component) {return (<p className="text-sm text-muted-foreground">- Component{' '}- <code className="relative rounded-sm bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm">- {name}- </code>{' '}- not found in registry.+ Component <code>{name}</code> not found in registry.</p>)}diff --git a/apps/ui-library/components/mdx-components.tsx b/apps/ui-library/components/mdx-components.tsxindex 7d2dba9a8fb..0c5193eda7c 100644--- a/apps/ui-library/components/mdx-components.tsx+++ b/apps/ui-library/components/mdx-components.tsx@@ -148,13 +148,7 @@ const components = {)},code: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (- <code- className={cn(- 'relative rounded-sm bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm',- className- )}- {...props}- />+ <code className={className} {...props} />),Callout,ComponentPreview,diff --git a/apps/ui-library/styles/globals.css b/apps/ui-library/styles/globals.cssindex 49620053dd6..cc34b22397e 100644--- a/apps/ui-library/styles/globals.css+++ b/apps/ui-library/styles/globals.css@@ -1,4 +1,5 @@@import 'config/tailwind.config.css';+@import 'config/inline-code.css';@source '../app/**/*.{js,ts,jsx,tsx}';@source '../components/**/*.{js,ts,jsx,tsx}';diff --git a/apps/ui-library/styles/mdx.css b/apps/ui-library/styles/mdx.cssindex 2b54c9738d7..104f51862ce 100644--- a/apps/ui-library/styles/mdx.css+++ b/apps/ui-library/styles/mdx.css@@ -13,7 +13,7 @@}[data-rehype-pretty-code-figure] code {- @apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;+ @apply font-mono text-sm grid min-w-full break-words rounded-none border-0 bg-transparent p-0;counter-reset: line;box-decoration-break: clone;}