ui: remove imperial units, hide Replay button on mobile
- formatDistance/formatSpeed: km/km/h only, no mi/mph - Replay button hidden on mobile (d-none d-sm-table-cell) - Action column header hidden on mobile to match - data_table macro supports optional 'class' on column headers Co-authored-by: Copilot <[email protected]>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
{% for column in columns %}
|
||||
<th scope="col"{% if column.sortable %} aria-sort="none"{% endif %}>
|
||||
<th scope="col"{% if column.class %} class="{{ column.class }}"{% endif %}{% if column.sortable %} aria-sort="none"{% endif %}>
|
||||
{% if column.sortable %}
|
||||
<button class="data-list-sort" type="button" data-sort-key="{{ column.key }}">
|
||||
{{ column.label }}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
{"key": "duration", "label": "Time", "sortable": true},
|
||||
{"key": "maxSpeed", "label": "Max", "sortable": true},
|
||||
{"key": "odometer", "label": "Odometer", "sortable": false},
|
||||
{"key": "action", "label": "", "sortable": false}
|
||||
{"key": "action", "label": "", "sortable": false, "class": "d-none d-sm-table-cell"}
|
||||
],
|
||||
"No trips detected",
|
||||
"Trip history appears after sustained GPS or OBD movement is recorded."
|
||||
|
||||
Reference in New Issue
Block a user