Skip to content

Commit 42361d5

Browse files
committed
Cleanup name render in jobs and history
1 parent ad814c0 commit 42361d5

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

llmstack/client/src/pages/data.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,14 @@ export default function DataPage() {
257257
key: "name",
258258
render: (record, row) => {
259259
return (
260-
<Typography sx={{ display: "flex" }}>
260+
<Typography
261+
sx={{
262+
display: "flex",
263+
fontSize: "0.9rem",
264+
fontWeight: row.expand ? "600" : "inherit",
265+
gap: 1,
266+
}}
267+
>
261268
{row.expand ? (
262269
<KeyboardArrowDownOutlined
263270
fontSize="10px"

llmstack/client/src/pages/schedule.jsx

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
DialogContentText,
1919
DialogActions,
2020
Tooltip,
21+
Typography,
2122
} from "@mui/material";
2223
import moment from "moment";
2324
import { axios } from "../data/axios";
@@ -241,6 +242,31 @@ export default function Schedule() {
241242
{
242243
title: "Name",
243244
key: "name",
245+
render: (record, row) => {
246+
return (
247+
<Typography
248+
sx={{
249+
display: "flex",
250+
fontSize: "0.9rem",
251+
fontWeight: row.expand ? "600" : "inherit",
252+
gap: 1,
253+
}}
254+
>
255+
{row.expand ? (
256+
<KeyboardArrowDownOutlined
257+
fontSize="10px"
258+
sx={{ color: "#999", margin: "auto 0" }}
259+
/>
260+
) : (
261+
<KeyboardArrowRightOutlined
262+
fontSize="10px"
263+
sx={{ color: "#999", margin: "auto 0" }}
264+
/>
265+
)}
266+
{record}
267+
</Typography>
268+
);
269+
},
244270
},
245271
{
246272
title: "Type",
@@ -489,21 +515,7 @@ export default function Schedule() {
489515
column.key === "name" ? "left" : "center",
490516
}}
491517
>
492-
<>
493-
{column.key === "name" &&
494-
(row.expand ? (
495-
<KeyboardArrowDownOutlined
496-
fontSize="10px"
497-
sx={{ color: "#999", margin: "auto 0" }}
498-
/>
499-
) : (
500-
<KeyboardArrowRightOutlined
501-
fontSize="10px"
502-
sx={{ color: "#999", margin: "auto 0" }}
503-
/>
504-
))}
505-
{column.render ? column.render(value, row) : value}
506-
</>
518+
{column.render ? column.render(value, row) : value}
507519
</TableCell>
508520
);
509521
})}

0 commit comments

Comments
 (0)