mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-23 06:46:11 +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 {
|
||||
@@ -309,6 +312,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<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>
|
||||
|
@@ -288,12 +288,11 @@ function ArchivedTasksTable(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,
|
||||
@@ -312,6 +311,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -348,6 +351,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell}>
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -362,6 +366,7 @@ function Row(props: RowProps) {
|
||||
<FileCopyOutlinedIcon fontSize="small" style={{ height: "12px", width: "12px" }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{task.type}</TableCell>
|
||||
<TableCell>
|
||||
|
@@ -258,12 +258,11 @@ function CompletedTasksTable(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,
|
||||
@@ -282,6 +281,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -317,6 +320,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell}>
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -331,6 +335,7 @@ function Row(props: RowProps) {
|
||||
<FileCopyOutlinedIcon fontSize="small" style={{ height: "12px", width: "12px" }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{task.type}</TableCell>
|
||||
<TableCell>
|
||||
|
@@ -289,9 +289,9 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
boxShadow: theme.shadows[2],
|
||||
copyButton: {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover $copyButton":{
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover .MuiTableCell-root": {
|
||||
borderBottomColor: theme.palette.background.paper,
|
||||
@@ -311,6 +311,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup:{
|
||||
display:"flex",
|
||||
alignItems:"center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -347,6 +351,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell} >
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -357,9 +362,10 @@ function Row(props: RowProps) {
|
||||
size="small"
|
||||
className={classes.copyButton}
|
||||
>
|
||||
<FileCopyOutlinedIcon fontSize="small" style={{height:"12px", width:"12px"}} />
|
||||
<FileCopyOutlinedIcon fontSize="small" />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{task.type}</TableCell>
|
||||
<TableCell>
|
||||
|
@@ -317,9 +317,9 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
boxShadow: theme.shadows[2],
|
||||
copyButton: {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover $copyButton": {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover .MuiTableCell-root": {
|
||||
borderBottomColor: theme.palette.background.paper,
|
||||
@@ -338,6 +338,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -376,6 +380,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell}>
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -390,6 +395,7 @@ function Row(props: RowProps) {
|
||||
<FileCopyOutlinedIcon fontSize="small" style={{ height: "12px", width: "12px" }} />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
</div>
|
||||
</TableCell>
|
||||
<TableCell>{task.type}</TableCell>
|
||||
<TableCell>
|
||||
|
@@ -327,9 +327,9 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
boxShadow: theme.shadows[2],
|
||||
copyButton: {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover $copyButton": {
|
||||
display: "inline-block"
|
||||
},
|
||||
"&:hover .MuiTableCell-root": {
|
||||
borderBottomColor: theme.palette.background.paper,
|
||||
@@ -348,6 +348,10 @@ const useRowStyles = makeStyles((theme) => ({
|
||||
copyButton: {
|
||||
display: "none"
|
||||
},
|
||||
IdGroup: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
}
|
||||
}));
|
||||
|
||||
interface RowProps {
|
||||
@@ -385,6 +389,7 @@ function Row(props: RowProps) {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell component="th" scope="row" className={classes.idCell}>
|
||||
<div className={classes.IdGroup}>
|
||||
{uuidPrefix(task.id)}
|
||||
<Tooltip title="Copy text to clipboard">
|
||||
<IconButton
|
||||
@@ -399,6 +404,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