The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
feat: small buttons with bg
flooorianflo8b6f8a153aef
diff --git a/apps/web/.env.example b/apps/web/.env.exampleindex 024d77c674..2d1533e348 100644--- a/apps/web/.env.example+++ b/apps/web/.env.example@@ -103,4 +103,7 @@ NGROK_URL=NEXT_PUBLIC_IS_DUB=# For cron jobs-CRON_SECRET=\ No newline at end of file+CRON_SECRET=++# For AI services+OPENAI_API_KEY=\ No newline at end of filediff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsxindex 05720794ce..a0ead505fe 100644--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx@@ -486,7 +486,7 @@ function AddEditLinkModal({>Short Link</label>- <div className="flex items-center gap-2">+ <div className="flex items-center">{props && lockKey ? (<buttonclassName="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95"@@ -502,7 +502,7 @@ function AddEditLinkModal({) : (<Tooltip content="Generate a random key"><button- className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95"+ className="flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed"onClick={generateRandomKey}disabled={generatingRandomKey || generatingAIKey}type="button"@@ -542,7 +542,7 @@ function AddEditLinkModal({}><button- className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95 disabled:cursor-not-allowed"+ className="ml-2 flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed"onClick={generateAIKey}disabled={generatingAIKey ||diff --git a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx b/apps/web/ui/modals/add-edit-link-modal/og-section.tsxindex 0be08b0ff9..ee4567e7ee 100644--- a/apps/web/ui/modals/add-edit-link-modal/og-section.tsx+++ b/apps/web/ui/modals/add-edit-link-modal/og-section.tsx@@ -320,7 +320,7 @@ export default function OGSection({{title?.length || 0}/120</p><button- className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95 disabled:cursor-not-allowed"+ className="flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed"onClick={() => generateMetaData("title")}disabled={loadingMetaData.title}type="button"@@ -365,7 +365,7 @@ export default function OGSection({{description?.length || 0}/240</p><button- className="flex items-center space-x-2 text-sm text-gray-500 transition-all duration-75 hover:text-black active:scale-95 disabled:cursor-not-allowed"+ className="flex h-6 w-6 items-center justify-center rounded-md text-gray-500 transition-colors duration-75 hover:bg-gray-100 active:bg-gray-200 disabled:cursor-not-allowed"onClick={() => generateMetaData("description")}disabled={loadingMetaData.description}type="button"