|
1 | | -import { |
2 | | - IconButton, |
3 | | - Modal, |
4 | | - Card, |
5 | | - CardHeader, |
6 | | - CardContent, |
7 | | - Button, |
8 | | - Typography |
9 | | -} from '@material-ui/core'; |
10 | 1 | import { Theme, makeStyles } from '@material-ui/core/styles'; |
11 | 2 | import { BaseCSSProperties } from '@material-ui/core/styles/withStyles'; |
12 | 3 | import React, { useContext } from 'react'; |
@@ -90,40 +81,15 @@ const RouteLocations = props => { |
90 | 81 |
|
91 | 82 | const useStyles = makeStyles(theme => ({ |
92 | 83 | paper: { |
93 | | - height: 280, |
94 | | - width: 280, |
| 84 | + height: 300, |
| 85 | + width: 300, |
95 | 86 | textAlign: 'center', |
96 | 87 | color: '#888888', |
97 | 88 | whiteSpace: 'nowrap', |
98 | 89 | backgroundColor: '#ffffff', |
99 | | - borderRadius: 8, |
| 90 | + borderRadius: 3, |
100 | 91 | border: '0', |
101 | | - boxShadow: '0 6px 6px 0 rgba(153, 153, 153, 0.14), 0 6px 6px -2px rgba(153, 153, 153, 0.2), 0 6px 8px 0 rgba(153, 153, 153, 0.12)', |
102 | | - '&:hover, &.Mui-focusVisible': { |
103 | | - backgroundColor: `#ccd8e1`, |
104 | | - color: '#ffffff', |
105 | | - }, |
106 | | - }, |
107 | | - hover: { |
108 | | - boxShadow: 'none', |
109 | | - color: 'transparent' |
110 | | - }, |
111 | | - btnStyle: { |
112 | | - position: 'absolute', |
113 | | - top: -10, |
114 | | - left: -10, |
115 | | - margin: '0', |
116 | | - color: '#eeeeee', |
117 | | - borderRadius: '0', |
118 | | - backgroundColor: 'transparent', |
119 | | - '&:hover': { |
120 | | - backgroundColor: 'none' |
121 | | - } |
122 | | - }, |
123 | | - icon: { |
124 | | - width: '75px', |
125 | | - height: '75px', |
126 | | - boxShadow: 'none', |
| 92 | + boxShadow: '2px 2px 6px #bbbbbb', |
127 | 93 | }, |
128 | 94 | })); |
129 | 95 | const classes = useStyles({}); |
@@ -168,9 +134,8 @@ const RouteLocations = props => { |
168 | 134 | // edges: [{ from: 4, to: 2, label: 'hello' }, { from: 'one', to: 3 }, { from: 2, to: 4 }, { from: 2, to: 5 }] |
169 | 135 | // }; |
170 | 136 | const options = { |
171 | | - |
172 | | - height: '400px', |
173 | | - width: '400px', |
| 137 | + height: '300px', |
| 138 | + width: '300px', |
174 | 139 | style: 'surface', |
175 | 140 | layout: { |
176 | 141 | hierarchical: false |
@@ -199,8 +164,8 @@ const RouteLocations = props => { |
199 | 164 |
|
200 | 165 | return ( |
201 | 166 | <div className='traceContainer'> |
202 | | - <span id='trace'>Traces</span> |
203 | | - <Graph className={classes.paper} graph={graph} options={options} events={events} style={{ fontSize: '8px', color: '#555555', fontFamily: 'Open Sans', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)', backgroundColor: 'white' }} /> |
| 167 | + <span id='tracesTitle'>Route Traces</span> |
| 168 | + <Graph className={classes.paper} graph={graph} options={options} events={events} style={{ fontSize: '2px', color: '#555555', fontFamily: 'Open Sans', boxShadow: '3px 3px 6px 1px rgb(175, 175, 175)', backgroundColor: 'white', borderRadius: '3px' }} /> |
204 | 169 | </div> |
205 | 170 | ); |
206 | 171 | }; |
|
0 commit comments