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: smaller improvements

flooorianflo67dba0c8a962
diff --git a/apps/web/app/api/analytics/[endpoint]/route.ts b/apps/web/app/api/analytics/[endpoint]/route.ts
index 25919c6370..b1e3246985 100644
--- a/apps/web/app/api/analytics/[endpoint]/route.ts
+++ b/apps/web/app/api/analytics/[endpoint]/route.ts
@@ -15,8 +15,6 @@ export const GET = withAuth(
const parsedParams = getAnalyticsQuerySchema.parse(searchParams);
const { domain, key, interval } = parsedParams;
- console.log(domain, key, interval);
-
// return 403 if workspace is on the free plan and interval is 90d or all
if (
workspace?.plan === "free" &&
diff --git a/apps/web/ui/analytics/filter-bar.tsx b/apps/web/ui/analytics/filter-bar.tsx
index 5ce3f9d7d2..f9c8b86b1b 100644
--- a/apps/web/ui/analytics/filter-bar.tsx
+++ b/apps/web/ui/analytics/filter-bar.tsx
@@ -9,7 +9,7 @@ export default function FilterBar() {
<div className="flex w-full flex-wrap gap-1 rounded-lg bg-gray-100 p-1">
{allDomains.length > 0 && <DomainSelector />}
<TagSelector />
- <button className="flex items-center justify-center gap-2 truncate rounded-md border border-gray-200 bg-white py-2 pl-2 pr-4 text-sm text-gray-400">
+ <button className="flex items-center justify-center gap-2 truncate rounded-md border border-gray-300 bg-white py-2 pl-2 pr-4 text-sm text-gray-400 sm:border-gray-200">
<Plus className="h-4 w-4 flex-shrink-0 text-black" />
<span>Add Filter</span>
</button>
diff --git a/packages/ui/src/input-select.tsx b/packages/ui/src/input-select.tsx
index 32b1edd609..937d60f382 100644
--- a/packages/ui/src/input-select.tsx
+++ b/packages/ui/src/input-select.tsx
@@ -92,16 +92,7 @@ export function InputSelect({
setOpenCommandList(true);
}
}}
- // make the width dynamic to save space
- style={{
- width:
- inputValue.length === 0
- ? inputAttrs?.placeholder?.length
- ? `${inputAttrs?.placeholder?.length * 6 + 16}px`
- : "136px"
- : `${inputValue.length * 6 + 16}px`,
- }}
- className="block w-full rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0"
+ className="block w-full truncate rounded-md border-none px-0 text-sm text-gray-900 placeholder-gray-400 outline-none outline-0 transition-all duration-300 focus:ring-0 md:w-24"
/>
</>
);