The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat(www): adopt shared inline code defaults (#51983)
Danny White7e44d321b390
diff --git a/apps/www/components/Changelog/ChangelogInlineMarkdown.tsx b/apps/www/components/Changelog/ChangelogInlineMarkdown.tsxindex ccc978ecc98..d2578edea64 100644--- a/apps/www/components/Changelog/ChangelogInlineMarkdown.tsx+++ b/apps/www/components/Changelog/ChangelogInlineMarkdown.tsx@@ -9,11 +9,6 @@ import remarkGfm from 'remark-gfm'const INLINE_COMPONENTS: Components = {p: ({ children }) => <>{children}</>,a: ({ children }) => <>{children}</>,- code: ({ children }) => (- <code className="bg-muted text-foreground rounded px-1 py-0.5 font-mono text-[0.85em] font-normal">- {children}- </code>- ),}export function ChangelogInlineMarkdown({ children }: { children: string }) {diff --git a/apps/www/components/Contribute/markdownComponents.tsx b/apps/www/components/Contribute/markdownComponents.tsxindex 46461de1dc2..d93a1b9dce6 100644--- a/apps/www/components/Contribute/markdownComponents.tsx+++ b/apps/www/components/Contribute/markdownComponents.tsx@@ -5,15 +5,12 @@ export const markdownComponents: Components = {className ? (<code {...props} className="font-mono text-sm whitespace-pre block min-w-0" />) : (- <code- {...props}- className="bg-surface-200 text-foreground px-1.5 py-0.5 rounded-sm text-sm font-mono"- />+ <code {...props} />),pre: ({ node, ...props }) => (<pre{...props}- className="bg-surface-200 text-foreground p-4 rounded-lg mb-3 w-full min-w-0 overflow-x-auto"+ className="bg-surface-200 text-foreground p-4 rounded-lg mb-3 w-full min-w-0 overflow-x-auto font-mono text-sm whitespace-pre"/>),a: ({ node, ...props }) => (diff --git a/apps/www/components/Regions/RegionsList.tsx b/apps/www/components/Regions/RegionsList.tsxindex 5489614a574..50e82c8ea07 100644--- a/apps/www/components/Regions/RegionsList.tsx+++ b/apps/www/components/Regions/RegionsList.tsx@@ -61,7 +61,10 @@ export const RegionsList = ({{region.displayName}</span>{region.jurisdiction && <Badge>{region.jurisdiction}</Badge>}- <code className="ml-auto shrink-0 font-mono text-xs text-foreground-lighter">+ <code+ data-code-style="plain"+ className="ml-auto shrink-0 font-mono text-xs text-foreground-lighter"+ >{region.code}</code></button>diff --git a/apps/www/styles/globals.css b/apps/www/styles/globals.cssindex 441b4c82e2b..3bbc4b37205 100644--- a/apps/www/styles/globals.css+++ b/apps/www/styles/globals.css@@ -1,4 +1,5 @@@import 'config/tailwind.config.css';+@import 'config/inline-code.css';@source '../_blog/*.mdx';@source '../components/**/*.tsx';