Skip to content

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

Address feedback

Joshen Lim9a316a45d62e
diff --git a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
index 9dc14031078..0b01ffb2c15 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
@@ -14,27 +14,13 @@ const EdgeFunctionSecret = ({ secret, onSelectDelete }: EdgeFunctionSecretProps)
return (
<Table.tr>
<Table.td>
- <p className="truncate py-2 w-[250px]">{secret.name}</p>
+ <p className="truncate py-2">{secret.name}</p>
</Table.td>
<Table.td>
- <div className="flex items-center space-x-2">
- <Button
- type="text"
- icon={
- show ? (
- <IconEyeOff size={16} strokeWidth={1.5} />
- ) : (
- <IconEye size={16} strokeWidth={1.5} />
- )
- }
- className="px-1"
- onClick={() => setShow(!show)}
- />
- {show ? (
- <Input copy value={secret.value} size="small" className="font-mono w-full" />
- ) : (
- <p className="text-sm font-mono">••••••••••••••••••</p>
- )}
+ <div className="flex items-center space-x-2 max-w-[500px]">
+ <p className="font-mono text-sm truncate" title={secret.value}>
+ {secret.value}
+ </p>
</div>
</Table.td>
<Table.td>
diff --git a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
index f4188cbbada..d2cda9e90c7 100644
--- a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
+++ b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
@@ -54,11 +54,9 @@ const EdgeFunctionSecrets = () => {
{isSuccess && (
<Table
head={[
- <Table.th key="secret-name" className="w-[250px]">
- Name
- </Table.th>,
- <Table.th key="secret-value">Value</Table.th>,
- <Table.th key="add-secret" className="w-[100px]">
+ <Table.th key="secret-name">Name</Table.th>,
+ <Table.th key="secret-value">Digest</Table.th>,
+ <Table.th key="add-secret">
<div className="flex items-center justify-end">
<Button onClick={() => setShowCreateSecret(true)}>Add new secret</Button>
</div>