Skip to content

Commit f3fc582

Browse files
authored
Merge pull request #1261 from rust-lang/compare-right-align
Align numeric columns to right in compare table
2 parents 8ba8456 + d0b14ec commit f3fc582

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

site/static/compare.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@
206206
height: 10px;
207207
}
208208

209-
#content td {
209+
#bootstrap th {
210210
text-align: center;
211211
}
212212

213-
#bootstrap th {
213+
#bootstrap td {
214214
text-align: center;
215215
}
216216

@@ -227,10 +227,13 @@
227227
width: 25%;
228228
min-width: 50px;
229229
}
230-
231-
.benches th+td {
230+
.benches td {
231+
text-align: center;
232232
width: 25%;
233233
}
234+
.benches td.numeric {
235+
text-align: right;
236+
}
234237

235238
.benchmark-name {
236239
text-align: center;
@@ -1053,12 +1056,12 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
10531056
<td>
10541057
{{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" : "-" }}
10551058
</td>
1056-
<td v-if="showRawData">
1059+
<td v-if="showRawData" class="numeric">
10571060
<a v-bind:href="detailedQueryLink(commitA, testCase)">
10581061
<abbr :title="testCase.datumA">{{ testCase.datumA.toFixed(2) }}</abbr>
10591062
</a>
10601063
</td>
1061-
<td v-if="showRawData">
1064+
<td v-if="showRawData" class="numeric">
10621065
<a v-bind:href="detailedQueryLink(commitB, testCase)">
10631066
<abbr :title="testCase.datumB">{{ testCase.datumB.toFixed(2) }}</abbr>
10641067
</a>

0 commit comments

Comments
 (0)