Skip to content

Commit a551be8

Browse files
fix table layout: fit viewport, timestamp 2-line, cell ellipsis [skip-ci]
- body: margin 0, overflow-x hidden to eliminate horizontal scroll - box-sizing: border-box globally - Timestamp cells split into date/time on two lines (ts-cell class) - Data cells: max-width 150px with text-overflow ellipsis, title attr for hover - SYSTEM data cells: overflow visible for custom tooltip - Header cells: overflow visible for tooltip popups - app_dev.py: add missing totp_manager stub functions
1 parent 8891ba5 commit a551be8

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

result_server/app_dev.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def _create_stub_totp_manager():
4141
mod.generate_totp_uri = lambda s, e, **kw: f"otpauth://totp/BenchKit:{e}?secret={s}"
4242
mod.generate_qr_base64 = lambda s, e, **kw: ""
4343
mod.verify_code = lambda s, c: True
44+
mod.check_code_reuse = lambda *a, **kw: False
45+
mod.check_rate_limit = lambda *a, **kw: False
46+
mod.record_failed_attempt = lambda *a, **kw: 0
47+
mod.clear_failed_attempts = lambda *a, **kw: None
48+
mod.MAX_LOGIN_ATTEMPTS = 5
4449
return mod
4550

4651

result_server/templates/_results_table.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
{% include "_pagination.html" %}
44

5-
<div class="table-wrapper">
65
<table id="resultsTable">
76
<thead>
87
<!-- Row 1: Column names -->
@@ -141,7 +140,7 @@
141140
{% endif %}
142141
</td>
143142
{% elif key == "system" %}
144-
<td>
143+
<td style="overflow: visible; position: relative;">
145144
<span class="tooltip">{{ row[key] }}
146145
<span class="tooltiptext">
147146
{% set sys_info = systems_info.get(row[key]) %}
@@ -161,8 +160,11 @@
161160
</td>
162161
{% elif key in ["nodes", "numproc_node", "nthreads"] %}
163162
<td{% if row[key] == "N/A" %} style="color: red;"{% endif %}>{{ row[key] }}</td>
164-
{% elif key in ["timestamp", "code", "fom", "fom_version", "exp", "execution_mode", "ci_trigger", "pipeline_id"] %}
165-
<td>{{ row[key] }}</td>
163+
{% elif key == "timestamp" %}
164+
{% set ts_parts = row[key].split(' ') %}
165+
<td class="ts-cell">{{ ts_parts[0] }}<br>{{ ts_parts[1] if ts_parts|length > 1 else '' }}</td>
166+
{% elif key in ["code", "fom", "fom_version", "exp", "execution_mode", "ci_trigger", "pipeline_id"] %}
167+
<td title="{{ row[key] }}">{{ row[key] }}</td>
166168
{% endif %}
167169
{% if key == "fom" %}
168170
<td style="text-align: center;">
@@ -181,7 +183,6 @@
181183
{% endfor %}
182184
</tbody>
183185
</table>
184-
</div>
185186

186187
{% include "_pagination.html" %}
187188

result_server/templates/_table_base.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<style>
2+
/* ページ全体 */
3+
body { margin: 0; padding: 0; box-sizing: border-box; overflow-x: hidden; }
4+
*, *::before, *::after { box-sizing: inherit; }
5+
26
/* 共通テーブルスタイル */
3-
table { border-collapse: collapse; width: 100%; table-layout: auto; }
4-
th, td { border: 1px solid #ddd; padding: 4px 6px; font-size: 13px; }
5-
th { background-color: #f2f2f2; }
7+
table { border-collapse: collapse; width: 100%; }
8+
th, td { border: 1px solid #ddd; padding: 3px 5px; font-size: 12px; }
9+
th { background-color: #f2f2f2; overflow: visible; position: relative; }
10+
td { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
611
tr:hover { background-color: #f5f5f5; }
7-
.table-wrapper { width: 100%; overflow-x: auto; }
812
.underline-link { text-decoration: underline; color: darkblue; cursor: pointer; }
13+
.ts-cell { white-space: nowrap; font-size: 11px; }
914

1015
/* ツールチップスタイル */
1116
.tooltip {

0 commit comments

Comments
 (0)