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.

remove overflow scroll

Steven Tey5bcc8e54514a
diff --git a/apps/web/ui/stats/bar-list.tsx b/apps/web/ui/stats/bar-list.tsx
index b8159b40b2..9d2e069c2b 100644
--- a/apps/web/ui/stats/bar-list.tsx
+++ b/apps/web/ui/stats/bar-list.tsx
@@ -137,7 +137,7 @@ export function LineItem({
setShowModal: Dispatch<SetStateAction<boolean>>;
barBackground: string;
}) {
- const itemRef = useRef<HTMLDivElement>(null);
+ const itemRef = useRef<HTMLAnchorElement>(null);
const entry = useIntersectionObserver(itemRef, {});
const isVisible = !!entry?.isIntersecting;
diff --git a/apps/web/ui/stats/devices.tsx b/apps/web/ui/stats/devices.tsx
index 90215dbc23..62d29f4699 100644
--- a/apps/web/ui/stats/devices.tsx
+++ b/apps/web/ui/stats/devices.tsx
@@ -57,7 +57,7 @@ export default function Devices() {
</div>
{barList()}
</Modal>
- <div className="scrollbar-hide relative z-0 h-[400px] overflow-scroll border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="scrollbar-hide relative z-0 h-[400px] border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-3 flex justify-between">
<h1 className="text-lg font-semibold">Devices</h1>
<TabSelect
diff --git a/apps/web/ui/stats/locations.tsx b/apps/web/ui/stats/locations.tsx
index 43d7f15cc3..059fd226d5 100644
--- a/apps/web/ui/stats/locations.tsx
+++ b/apps/web/ui/stats/locations.tsx
@@ -61,7 +61,7 @@ export default function Locations() {
</div>
{barList()}
</Modal>
- <div className="scrollbar-hide relative z-0 h-[400px] overflow-scroll border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="scrollbar-hide relative z-0 h-[400px] border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-3 flex justify-between">
<h1 className="text-lg font-semibold">Locations</h1>
<TabSelect
diff --git a/apps/web/ui/stats/referer.tsx b/apps/web/ui/stats/referer.tsx
index afbe0641ff..f89f372201 100644
--- a/apps/web/ui/stats/referer.tsx
+++ b/apps/web/ui/stats/referer.tsx
@@ -64,7 +64,7 @@ export default function Referer() {
</div>
{barList()}
</Modal>
- <div className="scrollbar-hide relative z-0 h-[400px] overflow-scroll border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="scrollbar-hide relative z-0 h-[400px] border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-3 flex justify-between">
<h1 className="text-lg font-semibold">Referrers</h1>
</div>
diff --git a/apps/web/ui/stats/top-links.tsx b/apps/web/ui/stats/top-links.tsx
index 6702d3628a..78f1fba1da 100644
--- a/apps/web/ui/stats/top-links.tsx
+++ b/apps/web/ui/stats/top-links.tsx
@@ -68,7 +68,7 @@ export default function TopLinks() {
</div>
{barList()}
</Modal>
- <div className="scrollbar-hide relative z-0 h-[400px] overflow-scroll border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="scrollbar-hide relative z-0 h-[400px] border border-gray-200 bg-white px-7 py-5 sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-3 flex justify-between">
<h1 className="text-lg font-semibold capitalize">
Top {tab === "link" ? "Links" : "URLs"}