mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-03 02:32:00 +08:00
Update task table row to use box-shadow on hover
This commit is contained in:
@@ -259,11 +259,17 @@ function ActiveTasksTable(props: Props & ReduxProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useRowStyles = makeStyles({
|
const useRowStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
boxShadow: theme.shadows[2],
|
||||||
},
|
},
|
||||||
});
|
"&:hover .MuiTableCell-root": {
|
||||||
|
borderBottomColor: theme.palette.background.paper,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
interface RowProps {
|
interface RowProps {
|
||||||
task: ActiveTaskExtended;
|
task: ActiveTaskExtended;
|
||||||
|
@@ -292,6 +292,12 @@ function ArchivedTasksTable(props: Props & ReduxProps) {
|
|||||||
const useRowStyles = makeStyles((theme) => ({
|
const useRowStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
boxShadow: theme.shadows[2],
|
||||||
|
},
|
||||||
|
"&:hover .MuiTableCell-root": {
|
||||||
|
borderBottomColor: theme.palette.background.paper,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actionCell: {
|
actionCell: {
|
||||||
width: "96px",
|
width: "96px",
|
||||||
|
@@ -291,9 +291,15 @@ function PendingTasksTable(props: Props & ReduxProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useRowStyles = makeStyles({
|
const useRowStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
boxShadow: theme.shadows[2],
|
||||||
|
},
|
||||||
|
"&:hover .MuiTableCell-root": {
|
||||||
|
borderBottomColor: theme.palette.background.paper,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actionCell: {
|
actionCell: {
|
||||||
width: "96px",
|
width: "96px",
|
||||||
@@ -302,7 +308,7 @@ const useRowStyles = makeStyles({
|
|||||||
marginLeft: 3,
|
marginLeft: 3,
|
||||||
marginRight: 3,
|
marginRight: 3,
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
|
|
||||||
interface RowProps {
|
interface RowProps {
|
||||||
task: PendingTaskExtended;
|
task: PendingTaskExtended;
|
||||||
|
@@ -322,9 +322,15 @@ function RetryTasksTable(props: Props & ReduxProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useRowStyles = makeStyles({
|
const useRowStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
boxShadow: theme.shadows[2],
|
||||||
|
},
|
||||||
|
"&:hover .MuiTableCell-root": {
|
||||||
|
borderBottomColor: theme.palette.background.paper,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actionCell: {
|
actionCell: {
|
||||||
width: "140px",
|
width: "140px",
|
||||||
@@ -333,7 +339,7 @@ const useRowStyles = makeStyles({
|
|||||||
marginLeft: 3,
|
marginLeft: 3,
|
||||||
marginRight: 3,
|
marginRight: 3,
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
|
|
||||||
interface RowProps {
|
interface RowProps {
|
||||||
task: RetryTaskExtended;
|
task: RetryTaskExtended;
|
||||||
|
@@ -319,9 +319,15 @@ function ScheduledTasksTable(props: Props & ReduxProps) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useRowStyles = makeStyles({
|
const useRowStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
boxShadow: theme.shadows[2],
|
||||||
|
},
|
||||||
|
"&:hover .MuiTableCell-root": {
|
||||||
|
borderBottomColor: theme.palette.background.paper,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
actionCell: {
|
actionCell: {
|
||||||
width: "140px",
|
width: "140px",
|
||||||
@@ -330,7 +336,7 @@ const useRowStyles = makeStyles({
|
|||||||
marginLeft: 3,
|
marginLeft: 3,
|
||||||
marginRight: 3,
|
marginRight: 3,
|
||||||
},
|
},
|
||||||
});
|
}));
|
||||||
|
|
||||||
interface RowProps {
|
interface RowProps {
|
||||||
task: ScheduledTaskExtended;
|
task: ScheduledTaskExtended;
|
||||||
|
Reference in New Issue
Block a user