Skip to content

Commit 27ac4f4

Browse files
committed
Align numeric columns to right in compare table
1 parent cd9c818 commit 27ac4f4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

site/static/compare.html

Lines changed: 11 additions & 8 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;
@@ -1043,22 +1046,22 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
10431046
<td>{{ testCase.benchmark }}</td>
10441047
<td>{{ testCase.profile }}</td>
10451048
<td>{{ testCase.scenario }}</td>
1046-
<td>
1049+
<td class="numeric">
10471050
<a v-bind:href="percentLink(commitB, commitA, testCase)">
10481051
<span v-bind:class="percentClass(testCase.percent)">
10491052
{{ testCase.percent.toFixed(2) }}%{{testCase.isDodgy ? "?" : ""}}
10501053
</span>
10511054
</a>
10521055
</td>
1053-
<td>
1056+
<td class="numeric">
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)