@@ -219,28 +219,28 @@ export class LivePlan extends React.Component<LivePlanProps, LivePlanState> {
219
219
const stageRootNodeId = "stage-" + stage . id + "-root" ;
220
220
const color = getStageStateColor ( stage ) ;
221
221
222
- graph . setNode ( clusterId , { style : 'fill: ' + color , labelStyle : 'fill: #fff' } ) ;
222
+ graph . setNode ( clusterId , { style : 'fill: ' + color , labelStyle : 'fill: #fff' , class : 'text-center' } ) ;
223
223
224
224
// this is a non-standard use of ReactDOMServer, but it's the cleanest way to unify DagreD3 with React
225
225
const html = ReactDOMServer . renderToString ( < StageStatistics key = { stage . id } stage = { stage } /> ) ;
226
226
227
- graph . setNode ( stageRootNodeId , { class : "stage-stats" , label : html , labelType : "html" } ) ;
227
+ graph . setNode ( stageRootNodeId , { class : "stage-stats text-center " , label : html , labelType : "html" } ) ;
228
228
graph . setParent ( stageRootNodeId , clusterId ) ;
229
229
graph . setEdge ( "node-" + stage . root , stageRootNodeId , { style : "visibility: hidden" } ) ;
230
230
231
231
stage . nodes . forEach ( node => {
232
232
const nodeId = "node-" + node . id ;
233
233
const nodeHtml = ReactDOMServer . renderToString ( < PlanNode { ...node } /> ) ;
234
234
235
- graph . setNode ( nodeId , { label : nodeHtml , style : 'fill: #fff' , labelType : "html" } ) ;
235
+ graph . setNode ( nodeId , { label : nodeHtml , style : 'fill: #fff' , labelType : "html" , class : "text-center" } ) ;
236
236
graph . setParent ( nodeId , clusterId ) ;
237
237
238
238
node . sources . forEach ( source => {
239
239
graph . setEdge ( "node-" + source , nodeId , { class : "plan-edge" , arrowheadClass : "plan-arrowhead" } ) ;
240
240
} ) ;
241
241
242
242
if ( node . remoteSources . length > 0 ) {
243
- graph . setNode ( nodeId , { label : '' , shape : "circle" } ) ;
243
+ graph . setNode ( nodeId , { label : '' , shape : "circle" , class : "text-center" } ) ;
244
244
245
245
node . remoteSources . forEach ( sourceId => {
246
246
const source = allStages . get ( sourceId ) ;
0 commit comments