Skip to content

Commit f11b541

Browse files
committed
Convert sheet header buttons to icons
1 parent 12c429e commit f11b541

File tree

1 file changed

+22
-9
lines changed
  • llmstack/client/src/components/sheets

1 file changed

+22
-9
lines changed

llmstack/client/src/components/sheets/Sheet.jsx

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ import { SheetColumnMenu, SheetColumnMenuButton } from "./SheetColumnMenu";
1919
import { axios } from "../../data/axios";
2020
import { Ws } from "../../data/ws";
2121
import { enqueueSnackbar } from "notistack";
22+
import SaveIcon from "@mui/icons-material/Save";
23+
import PlayArrowIcon from "@mui/icons-material/PlayArrow";
24+
import PauseIcon from "@mui/icons-material/Pause";
2225

2326
import "@glideapps/glide-data-grid/dist/index.css";
2427

@@ -110,14 +113,17 @@ const SheetHeader = ({ sheet, setRunId, hasChanges, onSave, sheetRunning }) => {
110113
</Stack>
111114
</Stack>
112115
<Stack direction={"row"} gap={1}>
113-
<Button
114-
variant="contained"
115-
size="medium"
116-
onClick={saveSheet}
117-
disabled={!hasChanges}
118-
>
119-
Save
120-
</Button>
116+
<Tooltip title="Save changes">
117+
<Button
118+
onClick={saveSheet}
119+
disabled={!hasChanges}
120+
color="primary"
121+
variant="outlined"
122+
sx={{ minWidth: "40px", padding: "5px", borderRadius: "4px" }}
123+
>
124+
<SaveIcon />
125+
</Button>
126+
</Tooltip>
121127
<Tooltip
122128
title={
123129
sheetRunning ? "Sheet is already running" : "Run the sheet"
@@ -128,8 +134,15 @@ const SheetHeader = ({ sheet, setRunId, hasChanges, onSave, sheetRunning }) => {
128134
size="medium"
129135
onClick={runSheet}
130136
disabled={sheetRunning}
137+
sx={{
138+
bgcolor: "success.main",
139+
"&:hover": { bgcolor: "success.dark" },
140+
minWidth: "40px",
141+
padding: "5px",
142+
borderRadius: "4px !important",
143+
}}
131144
>
132-
{sheetRunning ? "Running..." : "Run"}
145+
{sheetRunning ? <PauseIcon /> : <PlayArrowIcon />}
133146
</Button>
134147
</Tooltip>
135148
</Stack>

0 commit comments

Comments
 (0)