refactor(ocp): resizbale with scrollling added makes more easy to review if table overflows

This commit is contained in:
2025-04-14 17:21:29 -05:00
parent 71f1cf0f21
commit d0a19b5589
4 changed files with 37 additions and 23 deletions

View File

@@ -25,6 +25,7 @@ import {
SelectValue,
} from "@/components/ui/select";
import { ScrollArea } from "@/components/ui/scroll-area";
import { LstCard } from "@/components/extendedUI/LstCard";
interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
@@ -55,7 +56,7 @@ export function LabelTable<TData, TValue>({
//console.log(parseInt(style.height.replace("px", "")) - 50);
return (
<div>
<LstCard>
<div>
<div className="flex flex-row justify-between">
{data.length === 0 ? (
@@ -169,6 +170,6 @@ export function LabelTable<TData, TValue>({
Next
</Button>
</div>
</div>
</LstCard>
);
}