File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 177
177
178
178
# benches th {
179
179
border-right : dotted 1px ;
180
+ text-align : left;
181
+ word-break : break-word;
180
182
}
181
183
182
184
.benchmark-name {
@@ -325,7 +327,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
325
327
< tbody >
326
328
< template v-for ="run in bench.variants ">
327
329
< tr >
328
- < th v-if ="run.index === 0 " v-bind:rowspan ="bench.variants.length "> {{bench.name}}</ th >
330
+ < th v-if ="run.first " v-bind:rowspan ="bench.variants.length "> {{bench.name}}</ th >
329
331
< td > {{ run.casename }}</ td >
330
332
< td >
331
333
< a v-bind:href ="detailedQueryLink(data.a.commit, bench.name, run.casename) ">
@@ -440,7 +442,6 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
440
442
}
441
443
function toVariants ( name ) {
442
444
let variants = [ ] ;
443
- let index = 0 ;
444
445
for ( let d of data . a . data [ name ] ) {
445
446
const key = d [ 0 ] ;
446
447
const datumA = d [ 1 ] ;
@@ -461,13 +462,11 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
461
462
if ( shouldShowBuild ( key ) ) {
462
463
variants . push ( {
463
464
casename : key ,
464
- index,
465
465
datumA,
466
466
datumB,
467
467
percent,
468
468
isDodgy,
469
469
} ) ;
470
- index += 1 ;
471
470
}
472
471
}
473
472
@@ -483,6 +482,10 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
483
482
const maxPct = Math . max ( ...pcts ) . toFixed ( 1 ) ;
484
483
const minPct = Math . min ( ...pcts ) . toFixed ( 1 ) ;
485
484
const maxCasenameLen = Math . max ( ...variants . map ( f => f . casename . length ) ) ;
485
+ if ( variants . length > 0 ) {
486
+ variants [ 0 ] . first = true ;
487
+ }
488
+
486
489
return {
487
490
name,
488
491
variants,
You can’t perform that action at this time.
0 commit comments