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