mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-23 14:56:13 +08:00
make copy icon align with id
This commit is contained in:
@@ -258,12 +258,11 @@ function ActiveTasksTable(props: Props & ReduxProps) {
|
||||
const useRowStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
cursor: "pointer",
|
||||
|
||||
"&:hover": {
|
||||
boxShadow: theme.shadows[2],
|
||||
copyButton: {
|
||||
display: "inline-block"
|
||||
},
|
||||
},
|
||||
"&:hover $copyButton": {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover .MuiTableCell-root": {
|
||||
borderBottomColor: theme.palette.background.paper,
|
||||
@@ -275,6 +274,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -308,7 +311,8 @@ function Row(props: RowProps) {
|
||||
/>
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell} >
|
||||
<TableCell component="th" scope="row" className={classes.idCell}>
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -323,6 +327,7 @@ function Row(props: RowProps) {
|
||||
<FileCopyOutlinedIcon fontSize="small" style={{ height: "12px", width: "12px" }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{task.type}</TableCell>
|
||||
<TableCell>
|
||||
|
Reference in New Issue
Block a user