Merge pull request #1458 from bluewave-labs/fix/row-hover
fix: row background color on hover
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -216,7 +216,9 @@ const BasicTable = ({ data, paginated, reversed, table, emptyMessage = "No data"
|
|||||||
sx={{
|
sx={{
|
||||||
cursor: row.handleClick ? "pointer" : "default",
|
cursor: row.handleClick ? "pointer" : "default",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.background.accent,
|
filter: "brightness(.75)",
|
||||||
|
opacity: 0.75,
|
||||||
|
transition: "filter 0.3s ease, opacity 0.3s ease",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
key={row.id}
|
key={row.id}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus
|
|||||||
setMonitors(res?.data?.data?.monitors ?? []);
|
setMonitors(res?.data?.data?.monitors ?? []);
|
||||||
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
|
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
|
||||||
};
|
};
|
||||||
|
/* TODO Apply component basic table? */
|
||||||
return (
|
return (
|
||||||
<Box position="relative">
|
<Box position="relative">
|
||||||
{isSearching && (
|
{isSearching && (
|
||||||
@@ -264,7 +264,9 @@ const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePaus
|
|||||||
sx={{
|
sx={{
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.background.accent,
|
filter: "brightness(.75)",
|
||||||
|
opacity: 0.75,
|
||||||
|
transition: "filter 0.3s ease, opacity 0.3s ease",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
Reference in new issue
Block a user