Skip to content

Commit b95787f

Browse files
authored
Merge pull request #1254 from rylev/comparison-tweaks
Comparison page table tweaks and fixes
2 parents dcc9b10 + 1408b30 commit b95787f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

site/static/compare.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@
219219
}
220220

221221
.benches th {
222-
text-align: left;
223-
word-break: break-word;
222+
text-align: center;
224223
width: 25%;
225224
min-width: 50px;
226225
}
@@ -554,14 +553,18 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
554553
:cases="testCases.filter(c => c.category === 'primary')"
555554
:show-raw-data="showRawData"
556555
:commit-a="data.a.commit"
557-
:commit-b="data.b.commit"></test-cases-table>
556+
:commit-b="data.b.commit"
557+
:before="before"
558+
:after="after"></test-cases-table>
558559
<hr />
559560
<test-cases-table
560561
title="Secondary"
561562
:cases="testCases.filter(c => c.category === 'secondary')"
562563
:show-raw-data="showRawData"
563564
:commit-a="data.a.commit"
564-
:commit-b="data.b.commit"></test-cases-table>
565+
:commit-b="data.b.commit"
566+
:before="before"
567+
:after="after"></test-cases-table>
565568
<br />
566569
<hr />
567570
<div>
@@ -631,7 +634,7 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
631634
}
632635
});
633636
Vue.component('test-cases-table', {
634-
props: ['cases', 'showRawData', 'commitA', 'commitB', 'title'],
637+
props: ['cases', 'showRawData', 'commitA', 'commitB', 'before', 'after', 'title'],
635638
methods: {
636639
detailedQueryLink(commit, testCase) {
637640
return `/detailed-query.html?commit=${commit}&benchmark=${testCase.benchmark + "-" + testCase.profile}&scenario=${testCase.scenario}`;
@@ -664,8 +667,8 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
664667
</span>
665668
</span>
666669
</th>
667-
<th v-if="showRawData">{{before}}</th>
668-
<th v-if="showRawData">{{after}}</th>
670+
<th v-if="showRawData">{{ before }}</th>
671+
<th v-if="showRawData">{{ after }}</th>
669672
</tr>
670673
</thead>
671674
<tbody>

0 commit comments

Comments
 (0)