Skip to content

Commit b10d7da

Browse files
committed
Add autoHeight for batches and fix col width
1 parent ef1f963 commit b10d7da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

frontend/src/routes/job/ViewJobs.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ export default function ViewJobs({ height = "80vh", url = "/job/grid_sort" }) {
103103
},
104104
],
105105
},
106+
autoHeight: true,
106107
cellRenderer(params: ICellRendererParams<Job, number[] | undefined>) {
107-
return (params.value ?? []).map((batchId) => (
108+
return (params.value ?? []).map((batchId, index) => (
108109
<>
110+
{index !== 0 && <br />}
109111
<BatchChip batchId={batchId} />
110-
<br />
111112
</>
112113
));
113114
},
@@ -197,6 +198,9 @@ export default function ViewJobs({ height = "80vh", url = "/job/grid_sort" }) {
197198
<AgGridReact
198199
rowModelType="serverSide"
199200
columnDefs={colDefs}
201+
autoSizeStrategy={{
202+
type: "fitCellContents",
203+
}}
200204
serverSideDatasource={{
201205
getRows(params: IServerSideGetRowsParams<Job>) {
202206
fetch(url, {

0 commit comments

Comments
 (0)