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: simplify filter-bar for now

flooorianflo3b07f47a2175
diff --git a/apps/web/ui/analytics/filter-bar.tsx b/apps/web/ui/analytics/filter-bar.tsx
index 3c06a0b768..2f0b6bb34e 100644
--- a/apps/web/ui/analytics/filter-bar.tsx
+++ b/apps/web/ui/analytics/filter-bar.tsx
@@ -6,7 +6,7 @@ import useDomains from "@/lib/swr/use-domains";
export default function FilterBar() {
const { allDomains } = useDomains();
return (
- <div className="flex w-full flex-wrap gap-1 rounded-lg bg-gray-100 p-1">
+ <div className="flex w-auto 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-300 bg-white py-2 pl-2 pr-4 text-sm text-gray-400 sm:border-gray-200">
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index feb2a50a8f..50d7f1fb78 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -50,7 +50,7 @@ export default function Toggle() {
className={cn(
"mx-auto flex w-full max-w-4xl flex-col gap-2 space-y-3 px-2.5 md:space-y-0 lg:px-0 ",
{
- "md:h-24": !key,
+ // "md:h-24": !key,
"md:h-10": key,
},
)}
@@ -94,14 +94,15 @@ export default function Toggle() {
</div>
)}
<div className="flex items-center gap-2">
+ {!isPublicStatsPage && !key && <FilterBar />}
{!isPublicStatsPage && key && <SharePopover />}
<DateRangePicker />
{!isPublicStatsPage && <ExportButton />}
</div>
</div>
- <div className="flex w-full">
+ {/* <div className="flex w-full">
{!isPublicStatsPage && !key && <FilterBar />}
- </div>
+ </div> */}
</div>
</div>
);