1
1
import Box from "@material-ui/core/Box"
2
- import { makeStyles , Theme } from "@material-ui/core/styles"
2
+ import { fade , makeStyles , Theme } from "@material-ui/core/styles"
3
3
import Table from "@material-ui/core/Table"
4
4
import TableBody from "@material-ui/core/TableBody"
5
5
import TableCell from "@material-ui/core/TableCell"
6
6
import TableHead from "@material-ui/core/TableHead"
7
7
import TableRow from "@material-ui/core/TableRow"
8
+ import KeyboardArrowRight from "@material-ui/icons/KeyboardArrowRight"
8
9
import useTheme from "@material-ui/styles/useTheme"
9
10
import { FC } from "react"
10
11
import { useNavigate } from "react-router-dom"
@@ -77,7 +78,10 @@ export const BuildsTable: FC<BuildsTableProps> = ({ builds, className }) => {
77
78
</ span >
78
79
</ TableCell >
79
80
< TableCell >
80
- < span style = { { color :status . color } } > { status . status } </ span >
81
+ < div className = { styles . statusCell } >
82
+ < span style = { { color :status . color } } > { status . status } </ span >
83
+ < KeyboardArrowRight className = { styles . arrowRight } />
84
+ </ div >
81
85
</ TableCell >
82
86
</ TableRow >
83
87
)
@@ -102,11 +106,24 @@ const useStyles = makeStyles((theme) => ({
102
106
cursor :"pointer" ,
103
107
104
108
"&:hover td" :{
105
- backgroundColor :theme . palette . background . default ,
109
+ backgroundColor :fade ( theme . palette . primary . light , 0.1 ) ,
106
110
} ,
107
111
108
112
"&:focus" :{
109
113
outline :`1px solid${ theme . palette . secondary . dark } ` ,
110
114
} ,
115
+
116
+ "& .MuiTableCell-root:last-child" :{
117
+ paddingRight :theme . spacing ( 2 ) ,
118
+ } ,
119
+ } ,
120
+ arrowRight :{
121
+ color :fade ( theme . palette . primary . contrastText , 0.7 ) ,
122
+ width :20 ,
123
+ height :20 ,
124
+ } ,
125
+ statusCell :{
126
+ display :"flex" ,
127
+ justifyContent :"space-between" ,
111
128
} ,
112
129
} ) )