Skip to content

Align numeric columns to right in compare table #1261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions site/static/compare.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@
height: 10px;
}

#content td {
#bootstrap th {
text-align: center;
}

#bootstrap th {
#bootstrap td {
text-align: center;
}

Expand All @@ -227,10 +227,13 @@
width: 25%;
min-width: 50px;
}

.benches th+td {
.benches td {
text-align: center;
width: 25%;
}
.benches td.numeric {
text-align: right;
}

.benchmark-name {
text-align: center;
Expand Down Expand Up @@ -1053,12 +1056,12 @@ <h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
<td>
{{ testCase.significanceFactor ? testCase.significanceFactor.toFixed(2) + "x" : "-" }}
</td>
<td v-if="showRawData">
<td v-if="showRawData" class="numeric">
<a v-bind:href="detailedQueryLink(commitA, testCase)">
<abbr :title="testCase.datumA">{{ testCase.datumA.toFixed(2) }}</abbr>
</a>
</td>
<td v-if="showRawData">
<td v-if="showRawData" class="numeric">
<a v-bind:href="detailedQueryLink(commitB, testCase)">
<abbr :title="testCase.datumB">{{ testCase.datumB.toFixed(2) }}</abbr>
</a>
Expand Down