Skip to content

Commit 96e1457

Browse files
nomeataclaude
andcommitted
Improve table layout: compact data columns, spacer gap, move Size to end
- Add spacer column between label and data columns to absorb extra width on wide screens, keeping data columns at natural width - Move Size column to end of tests table on index page - Increase cell padding for less cramped appearance Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 76859d6 commit 96e1457

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

templates/checker.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ <h2>Checker "{{ checker.name }}"</h2>
9595
<thead>
9696
<tr>
9797
<th>Test</th>
98+
<th class="spacer-col"></th>
9899
<th class="text-center">Expected</th>
99100
<th class="text-center">Result</th>
100101
{{ perf_header() }}
@@ -104,6 +105,7 @@ <h2>Checker "{{ checker.name }}"</h2>
104105
{% for result in results %}
105106
<tr>
106107
<td><a href="#test-{{ result.test }}">{{ result.test }}</a></td>
108+
<td class="spacer-col"></td>
107109
<td class="text-center">
108110
{% if result.expected == 'accept' %}👍{% elif result.expected == 'reject' %}✋{% else %}⚠️ {{ result.expected }}{% endif %}
109111
</td>

templates/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ <h3>Checkers</h3>
4949
<tr>
5050
<th>Checker</th>
5151
<th>Version</th>
52+
<th class="spacer-col"></th>
5253
<th class="text-center" title="Correctly accepted valid proofs">👍</th>
5354
<th class="text-center" title="Correctly rejected invalid proofs"></th>
5455
<th class="text-center" title="Tests declined to process or crashed">🚫</th>
@@ -61,6 +62,7 @@ <h3>Checkers</h3>
6162
<tr>
6263
<td><a href="checker/{{ checker.name }}/">{{ checker.name }}</a></td>
6364
<td>{{ checker.version }}</td>
65+
<td class="spacer-col"></td>
6466
<td class="text-center {% if checker.stats.accept_correct == checker.stats.accept_total and checker.stats.accept_total > 0 %}bg-success{% elif checker.stats.accept_correct < checker.stats.accept_total %}bg-error{% endif %}">
6567
{{ checker.stats.accept_correct }}/{{ checker.stats.accept_total }}
6668
</td>
@@ -106,7 +108,7 @@ <h3>Tests</h3>
106108
<thead>
107109
<tr>
108110
<th style="vertical-align: bottom;">Name</th>
109-
<th class="text-right" style="vertical-align: bottom;">Size</th>
111+
<th class="spacer-col"></th>
110112
{% for checker in checkers %}
111113
{% if checker.get('serious', true) and checker.name == 'official' %}
112114
<th class="text-center official-column" style="vertical-align: bottom;"><a href="checker/{{ checker.name }}/" class="rotated-header">{{ checker.name }}</a></th>
@@ -117,13 +119,14 @@ <h3>Tests</h3>
117119
<th class="text-center" style="vertical-align: bottom;"><a href="checker/{{ checker.name }}/" class="rotated-header">{{ checker.name }}</a></th>
118120
{% endif %}
119121
{% endfor %}
122+
<th class="text-right" style="vertical-align: bottom;">Size</th>
120123
</tr>
121124
</thead>
122125
<tbody>
123126
{% for test in tests %}
124127
<tr>
125128
<td><a href="test/{{ test.name }}/">{{ test.name }}</a></td>
126-
<td class="text-right">{{ test.size_str }}</td>
129+
<td class="spacer-col"></td>
127130
{% for checker in checkers %}
128131
{% if checker.get('serious', true) and checker.name == 'official' %}
129132
{% set key = (checker.name, test.name) %}
@@ -184,6 +187,7 @@ <h3>Tests</h3>
184187
</td>
185188
{% endif %}
186189
{% endfor %}
190+
<td class="text-right">{{ test.size_str }}</td>
187191
</tr>
188192
{% endfor %}
189193
</tbody>

templates/static/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@
44

55
:root {
66
--font-family-mono: 'JuliaMono', monospace;
7+
}
8+
9+
/* All columns shrink to fit content; .spacer-col absorbs extra width */
10+
table th, table td {
11+
white-space: nowrap;
12+
padding-left: 0.8em;
13+
padding-right: 0.8em;
14+
}
15+
th.spacer-col, td.spacer-col {
16+
width: 100%;
717
}

templates/test.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ <h2>Test "{{ test.name }}"</h2>
5252
<thead>
5353
<tr>
5454
<th>Checker</th>
55+
<th class="spacer-col"></th>
5556
<th class="text-center">Result</th>
5657
{{ perf_header() }}
5758
</tr>
@@ -60,6 +61,7 @@ <h2>Test "{{ test.name }}"</h2>
6061
{% for result in results %}
6162
<tr>
6263
<td><a href="{{ root_path }}checker/{{ result.checker }}/#test-{{ test.name }}">{{ result.checker }}</a></td>
64+
<td class="spacer-col"></td>
6365
{{ result_status_cell(test.outcome, result.status) }}
6466
{{ perf_cells(result, test.outcome, instructions_per_second, format_duration, format_memory, format_instructions, convert_instructions_to_time) }}
6567
</tr>

0 commit comments

Comments
 (0)