Skip to content

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

Policy row spacing fixes (#35045)

Terry Suttoned4709078c56
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
index ce45d9a5818..473adfc4bed 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
@@ -69,20 +69,21 @@ const PolicyRow = ({
<div className="flex flex-col gap-y-1">
<Button
type="text"
- className="h-auto text-foreground text-sm border-none p-0 hover:bg-transparent"
+ className="h-auto text-foreground text-sm border-none p-0 hover:bg-transparent justify-start"
onClick={() => onSelectEditPolicy(policy)}
>
{policy.name}
</Button>
<div className="flex items-center gap-x-1">
<div className="text-foreground-lighter text-sm">
- Applied to:
+ Applied to:{' '}
{policy.roles.slice(0, 3).map((role, i) => (
<code key={`policy-${role}-${i}`} className="text-foreground-light text-xs">
{role}
+ {policy.roles.length > 1 ? '' : ' '}
</code>
- ))}{' '}
- role
+ ))}
+ {policy.roles.length > 1 ? 'roles' : 'role'}
</div>
{policy.roles.length > 3 && (
<Tooltip>