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.

Fixed z-index issue

Steven Tey332ccddf746a
diff --git a/app/ui/stats/devices.tsx b/app/ui/stats/devices.tsx
index e76d40f744..8ce9d38e49 100644
--- a/app/ui/stats/devices.tsx
+++ b/app/ui/stats/devices.tsx
@@ -26,7 +26,7 @@ export default function Devices() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex justify-between">
<h1 className="text-xl font-semibold">Devices</h1>
<BadgeSelect
diff --git a/app/ui/stats/feedback.tsx b/app/ui/stats/feedback.tsx
index edd5c97d2f..25076c8798 100644
--- a/app/ui/stats/feedback.tsx
+++ b/app/ui/stats/feedback.tsx
@@ -52,7 +52,7 @@ export default function Feedback() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex">
<h1 className="text-xl font-semibold">Feedback</h1>
</div>
diff --git a/app/ui/stats/locations.tsx b/app/ui/stats/locations.tsx
index 3324c1ab20..f23910815e 100644
--- a/app/ui/stats/locations.tsx
+++ b/app/ui/stats/locations.tsx
@@ -25,7 +25,7 @@ export default function Locations() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex justify-between">
<h1 className="text-xl font-semibold">Locations</h1>
<BadgeSelect
diff --git a/app/ui/stats/referer.tsx b/app/ui/stats/referer.tsx
index e0a7f61a79..803733167f 100644
--- a/app/ui/stats/referer.tsx
+++ b/app/ui/stats/referer.tsx
@@ -23,7 +23,7 @@ export default function Referer() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex">
<h1 className="text-xl font-semibold">Referrers</h1>
</div>
diff --git a/app/ui/stats/toggle.tsx b/app/ui/stats/toggle.tsx
index a43d0ef5d0..7e5e53fa5e 100644
--- a/app/ui/stats/toggle.tsx
+++ b/app/ui/stats/toggle.tsx
@@ -32,7 +32,7 @@ export default function Toggle() {
return (
<div
- className={`z-20 mb-5 ${
+ className={`z-10 mb-5 ${
basePath.startsWith("/stats")
? `top-0 ${!modal ? "md:top-16" : ""}`
: "top-[6.95rem]"
diff --git a/components/stats/devices.tsx b/components/stats/devices.tsx
index c9ed08f4b6..4df0b52f89 100644
--- a/components/stats/devices.tsx
+++ b/components/stats/devices.tsx
@@ -28,7 +28,7 @@ export default function Devices() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex justify-between">
<h1 className="text-xl font-semibold">Devices</h1>
<BadgeSelect
diff --git a/components/stats/feedback.tsx b/components/stats/feedback.tsx
index 824e805597..94c96a9610 100644
--- a/components/stats/feedback.tsx
+++ b/components/stats/feedback.tsx
@@ -54,7 +54,7 @@ export default function Feedback() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex">
<h1 className="text-xl font-semibold">Feedback</h1>
</div>
diff --git a/components/stats/locations.tsx b/components/stats/locations.tsx
index 7e1783352d..ddf52ee799 100644
--- a/components/stats/locations.tsx
+++ b/components/stats/locations.tsx
@@ -27,7 +27,7 @@ export default function Locations() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex justify-between">
<h1 className="text-xl font-semibold">Locations</h1>
<BadgeSelect
diff --git a/components/stats/referer.tsx b/components/stats/referer.tsx
index 7f49638417..137c575f9c 100644
--- a/components/stats/referer.tsx
+++ b/components/stats/referer.tsx
@@ -26,7 +26,7 @@ export default function Referer() {
);
return (
- <div className="relative h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
+ <div className="relative z-0 h-[420px] overflow-scroll border border-gray-200 bg-white px-7 py-5 scrollbar-hide sm:rounded-lg sm:border-gray-100 sm:shadow-lg">
<div className="mb-5 flex">
<h1 className="text-xl font-semibold">Referrers</h1>
</div>
diff --git a/components/stats/toggle.tsx b/components/stats/toggle.tsx
index 96f6aac74a..51d3d03470 100644
--- a/components/stats/toggle.tsx
+++ b/components/stats/toggle.tsx
@@ -33,7 +33,7 @@ export default function Toggle({ atModalTop }: { atModalTop?: boolean }) {
return (
<div
- className={`z-20 mb-5 ${
+ className={`z-10 mb-5 ${
basePath.startsWith("/stats") ? "top-0" : "top-[6.95rem]"
} sticky bg-gray-50 py-3 sm:py-5 ${atTop ? "shadow-md" : ""}`}
>