diff --git a/frontend/src/components/db-table-view/data-table.tsx b/frontend/src/components/db-table-view/data-table.tsx index b8b8bba..b2407d0 100644 --- a/frontend/src/components/db-table-view/data-table.tsx +++ b/frontend/src/components/db-table-view/data-table.tsx @@ -1,4 +1,7 @@ -import { TableView } from "@/components/db-table-view/table"; +import { + TableScrollContainer, + TableView, +} from "@/components/db-table-view/table"; import { Button, DataTablePagination, @@ -230,9 +233,9 @@ export const DataTable = ({
-
+ -
+
diff --git a/frontend/src/components/db-table-view/table.tsx b/frontend/src/components/db-table-view/table.tsx index 8951dff..2b8a99c 100644 --- a/frontend/src/components/db-table-view/table.tsx +++ b/frontend/src/components/db-table-view/table.tsx @@ -10,6 +10,7 @@ import { import { cn } from "@/lib/utils"; import { type Table as ReactTable, flexRender } from "@tanstack/react-table"; import { ArrowUp } from "lucide-react"; +import type { PropsWithChildren } from "react"; export function TableView({ table, @@ -108,3 +109,11 @@ export function TableView({ ); } + +export function TableScrollContainer({ children }: PropsWithChildren) { + return ( +
+ {children} +
+ ); +}