transition: "width 150ms",
},
button: {
- width: "1rem",
- margin: "auto 5px",
+ width: "2.5rem",
+ height: "2.5rem ",
},
});
<React.Fragment>
<Toolbar
className={classes.root}
- style={{ width: `${buttons.length * 2.12}rem` }}>
+ style={{ width: `${buttons.length * 2.5}rem` }}
+ >
{buttons.length ? (
buttons.map((btn, i) =>
btn.name === "ToggleTrashAction" ? (
className={classes.button}
title={currentPathIsTrash ? "Restore selected" : "Move to trash"}
key={i}
- disableFocusListener>
+ disableFocusListener
+ >
<IconButton onClick={() => props.executeMulti(btn, checkedList, props.resources)}>
{currentPathIsTrash ? <RestoreFromTrashIcon /> : <TrashIcon />}
</IconButton>
className={classes.button}
title={btn.name}
key={i}
- disableFocusListener>
+ disableFocusListener
+ >
<IconButton onClick={() => props.executeMulti(btn, checkedList, props.resources)}>
{btn.icon ? btn.icon({}) : <></>}
</IconButton>