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.

fix mobile designs

Steven Teyac45eabee7e3
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
index d8543d049b..b21fd0d58d 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/integrations/[integrationSlug]/page-client.tsx
@@ -156,8 +156,8 @@ export default function IntegrationPageClient({
)}
</div>
- <div className="flex justify-between rounded-lg border border-gray-200 bg-white p-4">
- <div className="flex gap-12">
+ <div className="flex flex-col justify-between gap-4 rounded-lg border border-gray-200 bg-white p-4 sm:flex-row sm:gap-0">
+ <div className="flex flex-col gap-4 sm:flex-row sm:gap-12">
{integration.installed && (
<div className="flex items-center gap-2">
<Avatar user={integration.installed.by} className="size-8" />
@@ -203,7 +203,7 @@ export default function IntegrationPageClient({
href={`/${slug}/settings/integrations/${integration.slug}/manage`}
className={cn(
buttonVariants({ variant: "secondary" }),
- "flex h-full items-center rounded-md border px-4 text-sm",
+ "flex h-9 items-center rounded-md border px-4 text-sm",
)}
>
Manage
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page-client.tsx
index dd657f03d4..80c61d9e44 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/oauth-apps/[appId]/page-client.tsx
@@ -79,20 +79,20 @@ export default function OAuthAppManagePageClient({ appId }: { appId: string }) {
Back to OAuth Apps
</p>
</Link>
- <div className="flex items-center justify-between gap-2">
+ <div className="flex justify-between gap-2 sm:items-center">
{isLoading ? (
- <div className="flex items-center gap-x-3">
- <div className="rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2">
+ <div className="flex flex-col gap-3 sm:flex-row sm:items-center">
+ <div className="w-fit flex-none rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2">
<TokenAvatar id="placeholder-oauth-app" className="size-8" />
</div>
<div className="flex flex-col gap-2">
<div className="h-3 w-20 rounded-full bg-gray-100"></div>
- <div className="h-3 w-80 rounded-full bg-gray-100"></div>
+ <div className="h-3 w-40 rounded-full bg-gray-100"></div>
</div>
</div>
) : (
- <div className="flex items-center gap-x-3">
- <div className="rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2">
+ <div className="flex flex-col gap-3 sm:flex-row sm:items-center">
+ <div className="w-fit flex-none rounded-md border border-gray-200 bg-gradient-to-t from-gray-100 p-2">
{oAuthApp?.logo ? (
<BlurImage
src={oAuthApp.logo}
@@ -107,7 +107,9 @@ export default function OAuthAppManagePageClient({ appId }: { appId: string }) {
</div>
<div>
<p className="font-semibold text-gray-700">{oAuthApp?.name}</p>
- <p className="text-sm text-gray-500">{oAuthApp?.description}</p>
+ <p className="text-pretty text-sm text-gray-500">
+ {oAuthApp?.description}
+ </p>
</div>
</div>
)}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx
index 1ae9bfc091..fef6aee9e8 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/tokens/page-client.tsx
@@ -74,7 +74,7 @@ export default function TokensPageClient() {
</div>
) : tokens.length > 0 ? (
<div>
- <div className="grid grid-cols-5 border-b border-gray-200 px-5 py-2 text-sm font-medium text-gray-500 sm:px-10">
+ <div className="hidden grid-cols-5 border-b border-gray-200 px-5 py-2 text-sm font-medium text-gray-500 sm:grid sm:px-10">
<div className="col-span-3">Name</div>
<div>Key</div>
<div className="text-center">Last used</div>
@@ -119,8 +119,8 @@ const TokenRow = (token: TokenProps) => {
<>
<AddEditTokenModal />
<DeleteTokenModal />
- <div className="relative grid grid-cols-5 items-center px-5 py-3 sm:px-10">
- <div className="col-span-3 flex items-center space-x-3">
+ <div className="relative flex flex-col gap-2 px-5 py-3 sm:grid sm:grid-cols-5 sm:items-center sm:px-10">
+ <div className="col-span-3 flex flex-col gap-3 sm:flex-row sm:items-center">
<TokenAvatar id={token.id} />
<div className="flex flex-col gap-y-px">
<div className="flex items-center gap-x-2">
@@ -161,7 +161,7 @@ const TokenRow = (token: TokenProps) => {
</div>
<div className="font-mono text-sm">{token.partialKey}</div>
<div
- className="text-center text-sm text-gray-500"
+ className="text-sm text-gray-500 sm:text-center"
suppressHydrationWarning
>
{timeAgo(token.lastUsed)}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx
index 67c771e1d2..cd9e62f5af 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/webhooks/[webhookId]/layout.tsx
@@ -9,9 +9,9 @@ export default function WebhookLayout({
children: ReactNode;
}) {
return (
- <>
+ <div className="max-w-screen grid gap-4">
<WebhookHeader webhookId={params.webhookId} />
{children}
- </>
+ </div>
);
}
diff --git a/apps/web/ui/oauth-apps/oauth-app-credentials.tsx b/apps/web/ui/oauth-apps/oauth-app-credentials.tsx
index 43e40d2fd3..9db15ff2ba 100644
--- a/apps/web/ui/oauth-apps/oauth-app-credentials.tsx
+++ b/apps/web/ui/oauth-apps/oauth-app-credentials.tsx
@@ -19,11 +19,9 @@ export default function OAuthAppCredentials({
<div className="flex flex-col space-y-3 text-left">
<div className="space-y-2">
<label className="text-sm font-medium text-gray-500">Client ID</label>
- <div className="flex items-center justify-between rounded-md border border-gray-300 bg-white p-3">
- <p className="font-mono text-sm text-gray-500">{clientId}</p>
- <div className="flex flex-col gap-2">
- <CopyButton value={clientId} className="rounded-md" />
- </div>
+ <div className="grid grid-cols-[1fr,auto] items-center gap-2 rounded-md border border-gray-300 bg-white p-3">
+ <p className="truncate font-mono text-sm text-gray-500">{clientId}</p>
+ <CopyButton value={clientId} className="rounded-md" />
</div>
</div>
diff --git a/apps/web/ui/webhooks/webhook-events.tsx b/apps/web/ui/webhooks/webhook-events.tsx
index 223a9822a9..0656544f37 100644
--- a/apps/web/ui/webhooks/webhook-events.tsx
+++ b/apps/web/ui/webhooks/webhook-events.tsx
@@ -80,12 +80,12 @@ const WebhookEvent = ({ event }: { event: WebhookEventProps }) => {
const localDate = new Date(
date.getTime() - date.getTimezoneOffset() * 60000,
);
- return localDate.toLocaleString();
+ return localDate.toLocaleTimeString();
})()}
</div>
</button>
</SheetTrigger>
- <SheetContent className="overflow-y-scroll p-0 sm:max-w-screen-sm">
+ <SheetContent className="w-full overflow-y-scroll p-0 sm:w-auto sm:max-w-screen-sm">
<div className="p-6">
<h3 className="text-lg font-semibold">{event.event}</h3>
<div className="group flex items-center gap-2">