Skip to content

The Open Source DocuSign Alternative.

chore: fixed UI for webhooks team

Catalin Pitc8869b308858
diff --git a/apps/web/src/app/(dashboard)/settings/webhooks/page.tsx b/apps/web/src/app/(dashboard)/settings/webhooks/page.tsx
index dcb90712b..01196544d 100644
--- a/apps/web/src/app/(dashboard)/settings/webhooks/page.tsx
+++ b/apps/web/src/app/(dashboard)/settings/webhooks/page.tsx
@@ -58,7 +58,10 @@ export default function WebhookPage() {
<div className="truncate font-mono text-xs">{webhook.id}</div>
<div className="mt-1.5 flex items-center gap-4">
- <h5 className="max-w-[30rem] truncate text-sm sm:max-w-[18rem]">
+ <h5
+ className="max-w-[30rem] truncate text-sm sm:max-w-[18rem]"
+ title={webhook.webhookUrl}
+ >
{webhook.webhookUrl}
</h5>
diff --git a/apps/web/src/app/(teams)/t/[teamUrl]/settings/webhooks/page.tsx b/apps/web/src/app/(teams)/t/[teamUrl]/settings/webhooks/page.tsx
index 4e41b4de6..054664624 100644
--- a/apps/web/src/app/(teams)/t/[teamUrl]/settings/webhooks/page.tsx
+++ b/apps/web/src/app/(teams)/t/[teamUrl]/settings/webhooks/page.tsx
@@ -58,12 +58,17 @@ export default function WebhookPage() {
!webhook.enabled && 'bg-muted/40',
)}
>
- <div className="flex items-center justify-between gap-x-4">
+ <div className="flex flex-col gap-x-4 sm:flex-row sm:items-center sm:justify-between">
<div>
<div className="truncate font-mono text-xs">{webhook.id}</div>
<div className="mt-1.5 flex items-center gap-2">
- <h5 className="text-sm">{webhook.webhookUrl}</h5>
+ <h5
+ className="max-w-[30rem] truncate text-sm sm:max-w-[18rem]"
+ title={webhook.webhookUrl}
+ >
+ {webhook.webhookUrl}
+ </h5>
<Badge variant={webhook.enabled ? 'neutral' : 'warning'} size="small">
{webhook.enabled ? 'Enabled' : 'Disabled'}
@@ -83,7 +88,7 @@ export default function WebhookPage() {
</p>
</div>
- <div className="flex flex-shrink-0 gap-4">
+ <div className="mt-4 flex flex-shrink-0 gap-4 sm:mt-0">
<Button asChild variant="outline">
<Link href={`/t/${team.url}/settings/webhooks/${webhook.id}`}>Edit</Link>
</Button>