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.

Mobile tweak

Tim Wilson05f5deb7bc7e
diff --git a/apps/web/ui/links/link-display.tsx b/apps/web/ui/links/link-display.tsx
index 5fc4c0968a..9f33368e5a 100644
--- a/apps/web/ui/links/link-display.tsx
+++ b/apps/web/ui/links/link-display.tsx
@@ -124,6 +124,7 @@ export default function LinkDisplay() {
}}
className={cn(
"rounded-md border px-2 py-0.5",
+ property.mobile === false && "hidden sm:block",
active
? "border-gray-300 bg-gray-100 text-gray-950"
: "border-transparent text-gray-600 hover:bg-gray-100 hover:text-gray-950",
diff --git a/apps/web/ui/links/links-display-provider.tsx b/apps/web/ui/links/links-display-provider.tsx
index 6ea611ad6a..3ed682437d 100644
--- a/apps/web/ui/links/links-display-provider.tsx
+++ b/apps/web/ui/links/links-display-provider.tsx
@@ -21,14 +21,15 @@ export const linkDisplayProperties: {
id: LinkDisplayProperty;
label: string;
switch?: LinkDisplayProperty;
+ mobile?: boolean;
}[] = [
- { id: "icon", label: "Icon" },
+ { id: "icon", label: "Icon", mobile: false },
{ id: "link", label: "Short link", switch: "title" },
{ id: "url", label: "Destination URL", switch: "description" },
{ id: "title", label: "Title", switch: "link" },
{ id: "description", label: "Description", switch: "url" },
- { id: "createdAt", label: "Created Date" },
- { id: "user", label: "Creator" },
+ { id: "createdAt", label: "Created Date", mobile: false },
+ { id: "user", label: "Creator", mobile: false },
{ id: "tags", label: "Tags" },
{ id: "analytics", label: "Analytics" },
];