Skip to content

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

fix duplicate policy name (#34316)

Saxon Fletcherecaba079be1c
diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
index 7b59fc961fb..51bb4985cc8 100644
--- a/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
@@ -69,12 +69,11 @@ const PolicyRow = ({
<div className="flex flex-col gap-y-1">
<Button
type="text"
- className="text-foreground p-0 hover:bg-transparent"
+ className="h-auto text-foreground text-sm border-none p-0 hover:bg-transparent"
onClick={() => onSelectEditPolicy(policy)}
>
{policy.name}
</Button>
- <p className="text-sm text-foreground">{policy.name}</p>
<div className="flex items-center gap-x-1">
<div className="text-foreground-lighter text-sm">
Applied to:
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index 4df9c2064ab..243cd504909 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -91,7 +91,7 @@ const FunctionList = ({
<Table.td className="truncate">
<Button
type="text"
- className="text-foreground p-0 hover:bg-transparent"
+ className="text-foreground text-sm p-0 hover:bg-transparent"
onClick={() => editFunction(x)}
>
{x.name}
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
index e0ae3255c3c..f70944bf7a3 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
@@ -85,14 +85,11 @@ const TriggerList = ({
<Table.tr key={x.id}>
<Table.td className="space-x-2">
<Tooltip>
- <TooltipTrigger className="cursor-default truncate max-w-48 inline-block">
- <Button
- type="text"
- className="text-foreground p-0 hover:bg-transparent"
- onClick={() => editTrigger(x)}
- >
- {x.name}
- </Button>
+ <TooltipTrigger
+ onClick={() => editTrigger(x)}
+ className="cursor-pointer text-foreground truncate max-w-48 inline-block"
+ >
+ {x.name}
</TooltipTrigger>
<TooltipContent side="bottom" align="center">
{x.name}