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.

tighten bars, remove filter

Steven Teyd664c669bdec
diff --git a/apps/web/ui/analytics/bar-list.tsx b/apps/web/ui/analytics/bar-list.tsx
index 7c8581fb87..210ea44e3c 100644
--- a/apps/web/ui/analytics/bar-list.tsx
+++ b/apps/web/ui/analytics/bar-list.tsx
@@ -60,7 +60,7 @@ export default function BarList({
const { isMobile } = useMediaQuery();
const bars = (
- <div className="grid gap-2">
+ <div className="grid gap-1.5">
{filteredData.map((data, idx) => (
<LineItem
key={idx}
@@ -147,7 +147,7 @@ export function LineItem({
return (
<Link href={href} scroll={false} onClick={() => setShowModal(false)}>
<div className="group flex items-center justify-between">
- <div className="relative z-10 flex h-10 w-full max-w-[calc(100%-2rem)] items-center">
+ <div className="relative z-10 flex h-8 w-full max-w-[calc(100%-2rem)] items-center">
{tab === "link" && linkData ? (
<Tooltip content={<LinkPreviewTooltip data={linkData} />}>
{lineItem}
diff --git a/apps/web/ui/analytics/main.tsx b/apps/web/ui/analytics/main.tsx
index a737e3ff80..b2cc4aa8f5 100644
--- a/apps/web/ui/analytics/main.tsx
+++ b/apps/web/ui/analytics/main.tsx
@@ -1,7 +1,7 @@
import useWorkspace from "@/lib/swr/use-workspace";
import { CountingNumbers, NumberTooltip, useRouterStuff } from "@dub/ui";
import { cn } from "@dub/utils";
-import { ChevronRight, Lock, X } from "lucide-react";
+import { ChevronRight, Lock } from "lucide-react";
import Link from "next/link";
import { useSearchParams } from "next/navigation";
import { useContext, useMemo } from "react";
@@ -144,25 +144,6 @@ export default function Main() {
</div>
);
})}
- <div className="flex flex-wrap items-center justify-end gap-2 p-5 sm:p-10">
- {root && (
- <Link
- href={
- queryParams({
- del: "root",
- getNewPath: true,
- }) as string
- }
- className="flex items-center space-x-1 rounded-lg border border-gray-200 bg-gray-50 px-3 py-1 text-sm text-gray-500 transition-all hover:bg-gray-100"
- >
- <strong className="text-gray-800">
- {root === "true" ? "Domains" : "Links"}
- </strong>
- <p>Only</p>
- <X className="h-4 w-4" />
- </Link>
- )}
- </div>
</div>
<div className="p-5 sm:p-10">
<AnalyticsAreaChart show={tab.show} />