change the pipeline selection highlight as requested in JENKINS-50408 (#1732)

This commit is contained in:
Nicolae Pascu 2018-05-07 09:07:42 +10:00 committed by GitHub
parent a7368615ac
commit 7a4a8abbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@
.pipeline-selection-highlight circle {
fill: none; //@brand-selection;
//stroke: @brand-selection;
stroke: @brand-grey-lite;
stroke: @brand-primary;
}
//--[ /PipelineGraph ]-----------------------------------------------------------

View File

@ -541,7 +541,7 @@ export class PipelineGraph extends Component {
*/
renderSelectionHighlight(elements: SVGChildren) {
const { nodeRadius, connectorStrokeWidth } = this.state.layout;
const highlightRadius = nodeRadius + 0.49 * connectorStrokeWidth;
const highlightRadius = nodeRadius + 0.49 * connectorStrokeWidth + 1;
let selectedNode = null;
columnLoop: for (const column of this.state.nodeColumns) {
@ -560,7 +560,7 @@ export class PipelineGraph extends Component {
elements.push(
<g className="pipeline-selection-highlight" transform={transform} key="selection-highlight">
<circle r={highlightRadius} strokeWidth={connectorStrokeWidth * 1.1} />
<circle r={highlightRadius} strokeWidth={2} />
</g>
);
}