refactor(actions): unify add button placement with outline variant in list footer

This commit is contained in:
2026-05-11 19:12:13 +02:00
parent 4940466054
commit 3718045d7b
+7 -11
View File
@@ -312,8 +312,13 @@ export function Actions() {
description="Pick a saved task, then edit or run it from the detail pane." description="Pick a saved task, then edit or run it from the detail pane."
contentSx={{ maxHeight: { xs: 520, md: 620 } }} contentSx={{ maxHeight: { xs: 520, md: 620 } }}
footer={ footer={
<Button fullWidth variant="contained" onClick={createNew}> <Button
+ New action variant="outlined"
size="small"
fullWidth
onClick={createNew}
>
Add action
</Button> </Button>
} }
> >
@@ -585,14 +590,6 @@ export function Actions() {
its details, run it, or open the editor popup. Use the its details, run it, or open the editor popup. Use the
button at the bottom to add a new action. button at the bottom to add a new action.
</Typography> </Typography>
<Stack
direction="row"
spacing={1}
sx={{ flexWrap: "wrap" }}
>
<Button variant="contained" onClick={createNew}>
+ New action
</Button>
{tasks[0] && ( {tasks[0] && (
<Button <Button
variant="outlined" variant="outlined"
@@ -602,7 +599,6 @@ export function Actions() {
</Button> </Button>
)} )}
</Stack> </Stack>
</Stack>
</CardContent> </CardContent>
</Card> </Card>