The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
refactor(ui): remove migrated inline code compatibility styles (#51986)
Danny Whiteb8483fc454ed
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsxindex f401c385431..61278df400a 100644--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx@@ -127,8 +127,7 @@ const CreditCard = ({{isSpt && spt && (<div className="mt-2.5 flex items-center gap-2 border-t pt-2.5 text-xs text-foreground-light"><p className="m-0">- Managed via Stripe Projects · Token ending in{' '}- <code className="text-code-inline">{spt.last4}</code>+ Managed via Stripe Projects · Token ending in <code>{spt.last4}</code>{tokenExpiry && <span> · Expires {tokenExpiry}</span>}</p></div>diff --git a/packages/config/typography.config.js b/packages/config/typography.config.jsindex fb506975f0c..6b47e2f8cb8 100644--- a/packages/config/typography.config.js+++ b/packages/config/typography.config.js@@ -117,13 +117,6 @@ module.exports = {'tbody tr:not(:last-child) td': {borderBottom: '1px solid var(--background-surface-200)',},- code: {- fontWeight: '400',- padding: '0.2rem 0.4rem',- backgroundColor: 'var(--background-surface-200)',- border: '1px solid var(--background-surface-300)',- borderRadius: 'var(--radius-lg)',- },a: {position: 'relative',transition: 'all 0.18s ease',diff --git a/packages/config/typography.css b/packages/config/typography.cssindex 7c67d8a4eb2..1fc337cef73 100644--- a/packages/config/typography.css+++ b/packages/config/typography.css@@ -45,11 +45,6 @@@apply truncate cursor-pointer underline underline-offset-4 decoration-foreground-muted/50 hover:decoration-foreground-lighter/80 transition-colors duration-100;}-/* Pair with `code` elements for semantic consistency, e.g. <code className="text-code-inline"> */-@utility text-code-inline {- @apply break-all text-xs tracking-tight bg-surface-200 border border-muted rounded-sm px-1 py-0.25 text-foreground font-medium;-}-@layer base {body {@apply text-default;diff --git a/packages/ui-patterns/src/FilterBar/CommandListItem.tsx b/packages/ui-patterns/src/FilterBar/CommandListItem.tsxindex f0ffde4e0bd..04f511c6442 100644--- a/packages/ui-patterns/src/FilterBar/CommandListItem.tsx+++ b/packages/ui-patterns/src/FilterBar/CommandListItem.tsx@@ -51,9 +51,7 @@ export function CommandListItem({{includeIcon && item.icon}<span className="truncate">{getActionItemLabel(item)}</span></span>- {item.count !== undefined && (- <code className="text-code-inline text-foreground-light">{item.count}</code>- )}+ {item.count !== undefined && <code className="text-foreground-light">{item.count}</code>}{item.operatorSymbol && <OperatorSymbolBadge symbol={item.operatorSymbol} />}</div>)diff --git a/packages/ui-patterns/src/Markdown/components.tsx b/packages/ui-patterns/src/Markdown/components.tsxindex 1a778969489..06950c39186 100644--- a/packages/ui-patterns/src/Markdown/components.tsx+++ b/packages/ui-patterns/src/Markdown/components.tsx@@ -9,9 +9,7 @@ const DynamicCodeBlock = dynamic(() =>import('../CodeBlock').then((m) => ({ default: m.CodeBlock })))-export const InlineCode = ({ className, ...props }: HTMLAttributes<HTMLElement>) => (- <code className={cn('text-code-inline', className)} {...props} />-)+export const InlineCode = (props: HTMLAttributes<HTMLElement>) => <code {...props} />export const Blockquote = ({ className, ...props }: HTMLAttributes<HTMLElement>) => (<blockquotediff --git a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsxindex de25f87dbc0..4e62f282156 100644--- a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationDisplay.tsx@@ -79,11 +79,7 @@ export function McpConfigurationDisplay({: mcpButtonData? 'Or add': 'Add'}{' '}- this configuration to{' '}- <code className="px-1 py-0.5 bg-surface-200 rounded-sm">- {selectedClient.configFile}- </code>- :+ this configuration to <code>{selectedClient.configFile}</code>:</div><CodeBlockvalue={configValue}diff --git a/packages/ui-patterns/src/Toc/toc.tsx b/packages/ui-patterns/src/Toc/toc.tsxindex 658e05d5fe0..1cca09600ec 100644--- a/packages/ui-patterns/src/Toc/toc.tsx+++ b/packages/ui-patterns/src/Toc/toc.tsx@@ -151,9 +151,7 @@ function TOCItem({ item }: { item: TOCItemType }) {)}>{formatTOCHeader(removeAnchor(item.title)).map((x, index) => (- <Fragment key={index}>- {x.type === 'code' ? <code className="text-code-inline">{x.value}</code> : x.value}- </Fragment>+ <Fragment key={index}>{x.type === 'code' ? <code>{x.value}</code> : x.value}</Fragment>))}</Primitive.TOCItem>)