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 project card too

Steven Teyaeea271e09a1
diff --git a/apps/web/ui/layout/project-select.tsx b/apps/web/ui/layout/project-select.tsx
index a8358b7839..9dcc991ba0 100644
--- a/apps/web/ui/layout/project-select.tsx
+++ b/apps/web/ui/layout/project-select.tsx
@@ -157,7 +157,7 @@ function ProjectList({
className="h-7 w-7 shrink-0 overflow-hidden rounded-full"
/>
<span
- className={`block truncate text-sm sm:w-[140px] ${
+ className={`block truncate text-sm sm:max-w-[140px] ${
selected.slug === slug ? "font-medium" : "font-normal"
}`}
>
diff --git a/apps/web/ui/projects/project-card.tsx b/apps/web/ui/projects/project-card.tsx
index 14d3f4797f..6d8e3d9561 100644
--- a/apps/web/ui/projects/project-card.tsx
+++ b/apps/web/ui/projects/project-card.tsx
@@ -55,8 +55,8 @@ export default function ProjectCard({
{isMigratedProject && (
<>
<div className="absolute -inset-1 rounded-lg bg-gradient-to-r from-red-600 to-violet-600 opacity-25 blur-lg transition duration-1000 group-hover:opacity-75 group-hover:duration-200" />
- <ProjectArrow className="absolute -bottom-20 right-56 lg:right-0 z-10 text-violet-600" />
- <div className="absolute -bottom-28 right-0 lg:-right-56 z-10 w-full max-w-[16rem] rounded-lg border border-gray-200 bg-white p-3 text-center text-sm shadow">
+ <ProjectArrow className="absolute -bottom-20 right-56 z-10 text-violet-600 lg:right-0" />
+ <div className="absolute -bottom-28 right-0 z-10 w-full max-w-[16rem] rounded-lg border border-gray-200 bg-white p-3 text-center text-sm shadow lg:-right-56">
<p>
Your <InlineSnippet>dub.sh</InlineSnippet> links have been
migrated to a custom project.
@@ -91,7 +91,9 @@ export default function ProjectCard({
height={48}
/>
<div>
- <h2 className="text-lg font-medium text-gray-700">{name}</h2>
+ <h2 className="max-w-[200px] truncate text-lg font-medium text-gray-700">
+ {name}
+ </h2>
<div className="flex items-center">
<p className="text-gray-500">{primaryDomain?.slug}</p>
<Tooltip