Skip to content

Commit aea8c28

Browse files
committed
Update expand/collapse icons in data and schedule pages
1 parent 3b2432a commit aea8c28

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

llmstack/client/src/pages/data.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,15 @@ export default function DataPage() {
259259
return (
260260
<Typography sx={{ display: "flex" }}>
261261
{row.expand ? (
262-
<KeyboardArrowDownOutlined />
262+
<KeyboardArrowDownOutlined
263+
fontSize="10px"
264+
sx={{ color: "#999", margin: "auto 0" }}
265+
/>
263266
) : (
264-
<KeyboardArrowRightOutlined />
267+
<KeyboardArrowRightOutlined
268+
fontSize="10px"
269+
sx={{ color: "#999", margin: "auto 0" }}
270+
/>
265271
)}
266272
{record}
267273
</Typography>

llmstack/client/src/pages/schedule.jsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ import { axios } from "../data/axios";
2424
import { useRecoilValue } from "recoil";
2525
import { appsBriefState } from "../data/atoms";
2626
import AddAppRunScheduleModal from "../components/schedule/AddAppRunScheduleModal";
27+
import {
28+
KeyboardArrowDownOutlined,
29+
KeyboardArrowRightOutlined,
30+
} from "@mui/icons-material";
2731
import AddOutlinedIcon from "@mui/icons-material/AddOutlined";
2832
import DeleteOutlineOutlinedIcon from "@mui/icons-material/DeleteOutlineOutlined";
2933
import DownloadOutlinedIcon from "@mui/icons-material/DownloadOutlined";
@@ -485,7 +489,21 @@ export default function Schedule() {
485489
column.key === "name" ? "left" : "center",
486490
}}
487491
>
488-
{column.render ? column.render(value, row) : value}
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+
</>
489507
</TableCell>
490508
);
491509
})}

0 commit comments

Comments
 (0)