The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs): improve email template terminology table readability (#47143)
Nik Richers516dc1267683
diff --git a/apps/docs/styles/globals.css b/apps/docs/styles/globals.cssindex 8e74b564762..47b3026db95 100644--- a/apps/docs/styles/globals.css+++ b/apps/docs/styles/globals.css@@ -303,13 +303,26 @@ th code {}/*- * Prevents very long code lines (checksums, URLs, etc., from breaking table- * widths+ * First column (e.g. variable names): wrap at word boundaries, not mid-token.*/-.prose :where(td) code {+.prose :where(td:first-child) code {+ @apply break-words whitespace-normal;+}++/*+ * Other columns: prevents very long code lines (checksums, URLs, etc.) from+ * breaking table widths.+ */+.prose :where(td:not(:first-child)) code {@apply break-all;}+.prose table td:first-child,+.prose table th:first-child {+ min-width: 12rem;+ width: 30%;+}+/* Zoomable image */[data-rmiz-modal]:focus,diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsxindex 8a2a43b66b2..b24311c00da 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx@@ -365,10 +365,16 @@ export const TemplateEditor = ({ template, isReadOnly = false }: TemplateEditorP<p className="text-sm">Template variables</p><p className="text-sm text-foreground-lighter">Data placeholders that can be inserted into the subject or body.{' '}+ <InlineLink+ href={`${DOCS_URL}/guides/auth/auth-email-templates#terminology`}+ >+ Terminology+ </InlineLink>+ {' · '}<InlineLinkhref={`${DOCS_URL}/guides/local-development/customizing-email-templates#template-variables`}>- Learn more+ Local development</InlineLink></p></div>diff --git a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsxindex fe20f4abd7a..01346476643 100644--- a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx+++ b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx@@ -54,6 +54,7 @@ import { TemplateEditor } from '@/components/interfaces/Auth/EmailTemplates/Tempimport AuthLayout from '@/components/layouts/AuthLayout/AuthLayout'import { DefaultLayout } from '@/components/layouts/DefaultLayout'import { DocsButton } from '@/components/ui/DocsButton'+import { InlineLink } from '@/components/ui/InlineLink'import { NoPermission } from '@/components/ui/NoPermission'import { useAuthConfigQuery } from '@/data/auth/auth-config-query'import { useAuthConfigUpdateMutation } from '@/data/auth/auth-config-update-mutation'@@ -207,7 +208,10 @@ const RedirectToTemplates = () => {{template.purpose || 'Configure and customize email templates.'}</PageHeaderDescription></PageHeaderSummary>- <PageHeaderAside>+ <PageHeaderAside className="flex items-center gap-3">+ <InlineLink href={`${DOCS_URL}/guides/auth/auth-email-templates#terminology`}>+ Terminology+ </InlineLink><DocsButtonhref={`${DOCS_URL}/guides/local-development/customizing-email-templates#${EMAIL_TEMPLATE_DOCS_ANCHORS[template.id]}`}/>