File tree 2 files changed +12
-6
lines changed
src/main/frontend/pipeline-graph-view/pipeline-graph
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -173,18 +173,22 @@ export function SequentialContainerLabel({
173
173
const y = details . y ;
174
174
const x = details . x - Math . floor ( nodeRadius * 2 ) ; // Because label X is a "node center"-relative position
175
175
176
- const containerStyle : any = {
176
+ const lineHeight = 1.35 ;
177
+
178
+ const containerStyle = {
177
179
top : y ,
178
180
left : x ,
179
- marginTop : "-0.5em" ,
180
- position : "absolute" ,
181
+ lineHeight,
182
+ marginTop : `-${ lineHeight / 2 } em` ,
183
+ position : "absolute" as const ,
181
184
maxWidth : sequentialStagesLabelOffset ,
182
185
overflow : "hidden" ,
183
186
textOverflow : "ellipsis" ,
184
187
background : "var(--background, white)" ,
185
- padding : "0 7px" ,
186
- lineHeight : "1" ,
187
- whiteSpace : "nowrap" ,
188
+ padding : "0 3px" ,
189
+ whiteSpace : "nowrap" as const ,
190
+ outline : "1px solid var(--graph-connector-grey, gray)" ,
191
+ borderRadius : "3px" ,
188
192
} ;
189
193
190
194
return (
Original file line number Diff line number Diff line change 12
12
}
13
13
14
14
.PWGx-PipelineGraph {
15
+ --graph-connector-grey : #{$graph-connector-grey } ;
16
+
15
17
margin-left : auto ;
16
18
margin-right : auto ;
17
19
}
You can’t perform that action at this time.
0 commit comments