Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

improve webhook

Steven Tey02fdec365967
diff --git a/apps/web/ui/modals/webhook-event-modal.tsx b/apps/web/ui/modals/webhook-event-modal.tsx
index e19c1ea9ad..2b68514402 100644
--- a/apps/web/ui/modals/webhook-event-modal.tsx
+++ b/apps/web/ui/modals/webhook-event-modal.tsx
@@ -22,14 +22,17 @@ function WebhookInfoModal({
<Modal
showModal={showWebhookInfoModal}
setShowModal={setShowWebhookInfoModal}
+ className="flex max-h-[75vh] max-w-screen-md flex-col overflow-y-auto bg-gray-50"
>
- <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 px-4 py-4 pt-8 sm:px-16">
+ <div className="flex flex-col items-center justify-center space-y-3 border-b border-gray-200 bg-white px-4 py-4 pt-8 sm:px-16">
<h3 className="text-lg font-medium">{event.event}</h3>
<p className="text-center text-sm text-gray-500">{event.event_id}</p>
</div>
- <pre className="p-4 text-sm text-gray-500">
- {JSON.stringify(event.request_body, null, 2)}
- </pre>
+ <div className="m-8 overflow-auto rounded-md border border-gray-200 bg-white p-8">
+ <pre className="text-sm text-gray-500">
+ {JSON.stringify(event.request_body, null, 2)}
+ </pre>
+ </div>
</Modal>
);
}