mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 19:58:11 +00:00
fix
This commit is contained in:
@@ -215,6 +215,7 @@ const FleetResourcePage = () => {
|
|||||||
|
|
||||||
const base: ColumnDef<FleetRecord>[] = config.columns.map((col) => ({
|
const base: ColumnDef<FleetRecord>[] = config.columns.map((col) => ({
|
||||||
id: col.id,
|
id: col.id,
|
||||||
|
accessorKey: col.accessorKey,
|
||||||
header: col.header,
|
header: col.header,
|
||||||
size: col.size || 150,
|
size: col.size || 150,
|
||||||
minSize: col.size ? Math.max(col.size - 20, 80) : 80,
|
minSize: col.size ? Math.max(col.size - 20, 80) : 80,
|
||||||
@@ -376,8 +377,8 @@ const FleetResourcePage = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{viewMode === "table" ? (
|
{viewMode === "table" ? (
|
||||||
<Box style={{ overflowX: "auto", width: "100%", minWidth: 0 }}>
|
<Box style={{ overflowX: "auto", width: "100%", minWidth: 0, WebkitOverflowScrolling: "touch" }}>
|
||||||
<div style={{ minWidth: "max-content" }}>
|
<div style={{ minWidth: "max-content", display: "inline-block", width: "100%" }}>
|
||||||
<DataTable
|
<DataTable
|
||||||
columns={columns}
|
columns={columns}
|
||||||
data={pagedRows}
|
data={pagedRows}
|
||||||
|
|||||||
Reference in New Issue
Block a user