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

@@ -1,5 +1,3 @@
import { LstCard } from "@/components/extendedUI/LstCard";
// import {useSessionStore} from "@/lib/store/sessionStore";
// import {useSettingStore} from "@/lib/store/useSettings";
import { useQuery } from "@tanstack/react-query";
@@ -16,12 +14,12 @@ export default function LabelLog() {
if (isLoading) return <div>Loading</div>;
const labelData = data ? data : [];
return (
<LstCard className="m-2 p-2 min-h-2/5">
<div className="m-2">
<LabelTable
columns={labelolumns}
data={labelData}
//style={style}
/>
</LstCard>
</div>
);
}

View File

@@ -1,4 +1,3 @@
import { LstCard } from "@/components/extendedUI/LstCard";
import { getOcpLogs } from "@/utils/querys/production/ocpLogs";
import { ocpColumns } from "@/utils/tableData/production/ocpLogs/ocpLogColumns";
import { OcpLogTable } from "@/utils/tableData/production/ocpLogs/ocpLogData";
@@ -36,12 +35,12 @@ export default function OcpLogs() {
}
return (
<LstCard className="m-2 p-2 min-h-2/5">
<div className="m-2">
<OcpLogTable
columns={columns}
data={logData}
//style={style}
/>
</LstCard>
</div>
);
}

View File

@@ -26,24 +26,37 @@ export default function OCPPage() {
>
<ResizablePanel>
<ResizablePanelGroup direction="vertical">
<ResizablePanel>
<div style={{ overflow: "auto" }}>
<Lots />
</div>
<ResizablePanel
style={{
overflow: "auto",
scrollbarWidth: "none",
}}
>
<Lots />
</ResizablePanel>
<ResizableHandle />
<ResizablePanel>
<ResizablePanelGroup direction="horizontal">
<ResizablePanel className="overflow: auto">
<div style={{ overflow: "auto" }}>
<LabelLog />
</div>
<ResizablePanelGroup
direction="horizontal"
autoSaveId="ocpPage"
>
<ResizablePanel
//className="text-sm p-4 overflow-scroll"
style={{
overflow: "auto",
scrollbarWidth: "none",
}}
>
<LabelLog />
</ResizablePanel>
<ResizableHandle />
<ResizablePanel>
<div style={{ overflow: "auto" }}>
<OcpLogs />
</div>
<ResizablePanel
style={{
overflow: "auto",
scrollbarWidth: "none",
}}
>
<OcpLogs />
</ResizablePanel>
</ResizablePanelGroup>
</ResizablePanel>
@@ -51,7 +64,10 @@ export default function OCPPage() {
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={25}>
<ResizablePanelGroup direction="vertical">
<ResizablePanelGroup
direction="vertical"
autoSaveId="ocpPage"
>
{server[0].value === "usday1vms006" && (
<ResizablePanel className="max-h-[300px]">
<WrapperManualTrigger />