I want to achieve the actions (Edit & Delete) to align vertically centered on the CardHeader. As shown in the screenshot, the buttons are not aligned with the title & avatar of CardHeader. The avatar seems to align center vertically when the content of the title requires two or more lines to show, but the actions stay in the top right corner.
I would really appreciate any help from the community.
Here is my code snippet
<CardHeader
avatar={
<Avatar className={classes.avatarNumber}>
<Typography variant={"h5"}>Q</Typography>
</Avatar>
}
title={<Typography variant={"h6"}>Gelloo</Typography>}
action={
<Box>
<IconButton>
<DeleteIcon/>
</IconButton>
<IconButton>
<EditIcon/>
</IconButton>
</Box>
}
/>
Added new: A possible solution to override the MuiCardHeader-action. But if there is any better solution, please suggest me. Thanks!
overrides: {
MuiCardHeader: {
action: {
marginTop: "auto",
marginBottom: "auto"
}
}
}

