1- import {
2- IconButton ,
3- Modal ,
4- Card ,
5- CardHeader ,
6- CardContent ,
7- Button ,
8- Typography
9- } from '@material-ui/core' ;
101import { Theme , makeStyles } from '@material-ui/core/styles' ;
112import { BaseCSSProperties } from '@material-ui/core/styles/withStyles' ;
123import React , { useContext } from 'react' ;
@@ -90,40 +81,15 @@ const RouteLocations = props => {
9081
9182 const useStyles = makeStyles ( theme => ( {
9283 paper : {
93- height : 280 ,
94- width : 280 ,
84+ height : 300 ,
85+ width : 300 ,
9586 textAlign : 'center' ,
9687 color : '#888888' ,
9788 whiteSpace : 'nowrap' ,
9889 backgroundColor : '#ffffff' ,
99- borderRadius : 8 ,
90+ borderRadius : 3 ,
10091 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' ,
12793 } ,
12894 } ) ) ;
12995 const classes = useStyles ( { } ) ;
@@ -139,7 +105,7 @@ const RouteLocations = props => {
139105 // check if node exists if not then add node
140106 let id = route [ i ] . microservice
141107 if ( nodeListObj [ id ] === undefined ) {
142- nodeListObj [ id ] = { id : id , label : id , color : { background : '#24d2f1' , border : 'white' , hover : { background :'#4d55ec' , border : 'white' } } , shape : 'circle' }
108+ nodeListObj [ id ] = { id : id , label : id , color : { background : '#24d2f1' , border : 'white' , hover : { background : '#4d55ec' , border : 'white' } } , shape : 'circle' }
143109 }
144110 // add edge from node 1 to node 2 (repeat til end)
145111 if ( i !== 0 ) {
@@ -168,9 +134,8 @@ const RouteLocations = props => {
168134 // edges: [{ from: 4, to: 2, label: 'hello' }, { from: 'one', to: 3 }, { from: 2, to: 4 }, { from: 2, to: 5 }]
169135 // };
170136 const options = {
171-
172- height : '400px' ,
173- width : '400px' ,
137+ height : '300px' ,
138+ width : '300px' ,
174139 style : 'surface' ,
175140 layout : {
176141 hierarchical : false
@@ -198,9 +163,9 @@ const RouteLocations = props => {
198163
199164
200165 return (
201- < div className = 'traceContainer' >
202- < span id = 'tracesTitle' > 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' } } />
166+ < div className = 'traceContainer' >
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 ' } } />
204169 </ div >
205170 ) ;
206171} ;
0 commit comments