Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: broken table on small screens

Ashish Viradiya138fe038b43a
diff --git a/components/analytics/documents-table.tsx b/components/analytics/documents-table.tsx
index 83d0414f..5a0ab878 100644
--- a/components/analytics/documents-table.tsx
+++ b/components/analytics/documents-table.tsx
@@ -249,7 +249,7 @@ export default function DocumentsTable({
<div className="flex justify-end">
<UpgradeOrExportButton />
</div>
- <div className="rounded-xl border">
+ <div className="rounded-xl border overflow-x-auto">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
diff --git a/components/analytics/links-table.tsx b/components/analytics/links-table.tsx
index 6e965d1b..78c997e8 100644
--- a/components/analytics/links-table.tsx
+++ b/components/analytics/links-table.tsx
@@ -313,7 +313,7 @@ export default function LinksTable({
<div className="flex justify-end">
<UpgradeOrExportButton />
</div>
- <div className="rounded-xl border">
+ <div className="rounded-xl border overflow-x-auto">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
diff --git a/components/analytics/views-table.tsx b/components/analytics/views-table.tsx
index 73998439..4600b76e 100644
--- a/components/analytics/views-table.tsx
+++ b/components/analytics/views-table.tsx
@@ -371,7 +371,7 @@ export default function ViewsTable({
<div className="flex justify-end">
<UpgradeOrExportButton />
</div>
- <div className="rounded-xl border">
+ <div className="rounded-xl border overflow-x-auto">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
diff --git a/components/analytics/visitors-table.tsx b/components/analytics/visitors-table.tsx
index 092fb2f1..011ae38e 100644
--- a/components/analytics/visitors-table.tsx
+++ b/components/analytics/visitors-table.tsx
@@ -299,7 +299,7 @@ export default function VisitorsTable({
<div className="flex justify-end">
<UpgradeOrExportButton />
</div>
- <div className="rounded-xl border">
+ <div className="rounded-xl border overflow-x-auto">
<Table>
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (
diff --git a/pages/dashboard.tsx b/pages/dashboard.tsx
index af03b485..e95488d8 100644
--- a/pages/dashboard.tsx
+++ b/pages/dashboard.tsx
@@ -179,6 +179,7 @@ export default function DashboardPage() {
count: overview?.counts.views,
},
]}
+ className="z-10"
/>
<div className="grid grid-cols-1">