Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Chore/styling spam banner (#30560)

Jonathan Summers-Muir49608fd7a026
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
index 670921a211e..648a3f075fe 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
@@ -1,7 +1,17 @@
import { Markdown } from 'components/interfaces/Markdown'
import InformationBox from 'components/ui/InformationBox'
import { ValidateSpamResponse } from 'data/auth/validate-spam-mutation'
-import { cn, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, WarningIcon } from 'ui'
+import {
+ cn,
+ Separator,
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+ WarningIcon,
+} from 'ui'
interface SpamValidationProps {
validationResult?: ValidateSpamResponse
@@ -27,35 +37,36 @@ export const SpamValidation = ({ validationResult }: SpamValidationProps) => {
description={
hasSpamWarning ? (
<>
- {spamRules.length > 0 && (
- <div className="flex flex-col gap-y-3">
- <p>
- {hasSpamWarning
- ? ` Rectify the following issues to improve your email's deliverability in order of priority:`
- : ` Address the following issues to improve your email's deliverability:`}
- </p>
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead className="h-10">Warning</TableHead>
- <TableHead className="h-10">Description</TableHead>
+ <div className="flex flex-col gap-y-3">
+ <p>
+ {hasSpamWarning
+ ? ` Rectify the following issues to improve your email's deliverability in order of priority:`
+ : ` Address the following issues to improve your email's deliverability:`}
+ </p>
+ <Table>
+ <TableHeader className="font-mono uppercase text-xs [&_th]:h-auto [&_th]:py-2">
+ <TableRow className="hover:bg-transparent">
+ <TableHead className="pl-0">Warning</TableHead>
+ <TableHead className="pr-0">Description</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {spamRules.map((rule) => (
+ <TableRow key={rule.name} className="hover:bg-transparent">
+ <TableCell className="pl-0 font-mono text-xs text-foreground">
+ {rule.name}
+ </TableCell>
+ <TableCell className="pr-0">{rule.desc}</TableCell>
</TableRow>
- </TableHeader>
- <TableBody>
- {spamRules.map((rule) => (
- <TableRow key={rule.name}>
- <TableCell className="py-2.5">{rule.name}</TableCell>
- <TableCell className="py-2.5">{rule.desc}</TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- <Markdown
- className="!max-w-none"
- content="Spam validation is powered by [SpamAssassin](https://spamassassin.apache.org/doc.html). Full list of all available warnings can be found [here](https://gist.github.com/ychaouche/a2faff159c2a1fea16019156972c7f8b)."
- />
- </div>
- )}
+ ))}
+ </TableBody>
+ </Table>
+ </div>
+ <Separator />
+ <Markdown
+ className="!max-w-none text-foreground-muted text-xs [&_a]:text-foreground-lighter mt-2"
+ content="Spam validation is powered by [SpamAssassin](https://spamassassin.apache.org/doc.html). Full list of all available warnings can be found [here](https://gist.github.com/ychaouche/a2faff159c2a1fea16019156972c7f8b)."
+ />
</>
) : null
}