From 51983bf3a57f02da4bc6acdbff647c309d89d68b Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Fri, 4 Jul 2025 02:36:56 +0400 Subject: [PATCH] style: scroll data table instead of page --- src/app/layout.tsx | 2 +- src/components/profile-data-table.tsx | 5 +++-- src/components/ui/table.tsx | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 93e20cc..b7c754e 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -24,7 +24,7 @@ export default function RootLayout({ return ( {children} diff --git a/src/components/profile-data-table.tsx b/src/components/profile-data-table.tsx index 1ae63f3..977ac64 100644 --- a/src/components/profile-data-table.tsx +++ b/src/components/profile-data-table.tsx @@ -30,6 +30,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; +import { ScrollArea } from "@/components/ui/scroll-area"; import { Table, TableBody, @@ -510,7 +511,7 @@ export function ProfilesDataTable({ return ( <> -
+ {table.getHeaderGroups().map((headerGroup) => ( @@ -559,7 +560,7 @@ export function ProfilesDataTable({ )}
-
+ ) { return (
@@ -98,7 +98,7 @@ function TableCaption({ return (
);