File tree Expand file tree Collapse file tree 2 files changed +35
-16
lines changed
llmstack/client/src/pages Expand file tree Collapse file tree 2 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,14 @@ export default function DataPage() {
257
257
key : "name" ,
258
258
render : ( record , row ) => {
259
259
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
+ >
261
268
{ row . expand ? (
262
269
< KeyboardArrowDownOutlined
263
270
fontSize = "10px"
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import {
18
18
DialogContentText ,
19
19
DialogActions ,
20
20
Tooltip ,
21
+ Typography ,
21
22
} from "@mui/material" ;
22
23
import moment from "moment" ;
23
24
import { axios } from "../data/axios" ;
@@ -241,6 +242,31 @@ export default function Schedule() {
241
242
{
242
243
title : "Name" ,
243
244
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
+ } ,
244
270
} ,
245
271
{
246
272
title : "Type" ,
@@ -489,21 +515,7 @@ export default function Schedule() {
489
515
column . key === "name" ? "left" : "center" ,
490
516
} }
491
517
>
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 }
507
519
</ TableCell >
508
520
) ;
509
521
} ) }
You can’t perform that action at this time.
0 commit comments