diff --git a/meshview/templates/firehose.html b/meshview/templates/firehose.html index e2d637c..2266e9a 100644 --- a/meshview/templates/firehose.html +++ b/meshview/templates/firehose.html @@ -1,101 +1,297 @@ {% extends "base.html" %} {% block css %} - .container { - max-width: 900px; - margin: 0 auto; - } +.container { + max-width: 900px; + margin: 0 auto; + padding: 10px; +} +#pause-button { + white-space: nowrap; + padding: 4px 10px; + font-size: 0.9rem; + border-radius: 6px; +} - #pause-button { - white-space: nowrap; - padding: 2px 8px; - font-size: 0.85rem; - } +.packet-table { + width: 100%; + border-collapse: collapse; + font-size: 0.85rem; + color: #e4e9ee; +} +.packet-table th, .packet-table td { + border: 1px solid #3a3f44; + padding: 6px 10px; + text-align: left; +} +.packet-table th { + background-color: #1f2226; + font-weight: bold; +} +.packet-table tr:nth-of-type(odd) { background-color: #272b2f; } +.packet-table tr:nth-of-type(even) { background-color: #212529; } +.port-tag { + display: inline-block; + padding: 1px 6px; + border-radius: 6px; + font-size: 0.75rem; + font-weight: 500; + color: #fff; +} + +/* --- Color-coded port labels --- */ +.port-0 { background-color: #6c757d; } +.port-1 { background-color: #007bff; } +.port-3 { background-color: #28a745; } +.port-4 { background-color: #ffc107; color: #000; } +.port-5 { background-color: #dc3545; } +.port-6 { background-color: #20c997; } +.port-65 { background-color: #ff66b3; } +.port-67 { background-color: #17a2b8; } +.port-70 { background-color: #6f42c1; } +.port-71 { background-color: #fd7e14; } + +.to-mqtt { + font-style: italic; + color: #aaa; +} + +/* --- Payload rows --- */ +.payload-row { + display: none; + background-color: #1b1e22; +} +.payload-cell { + padding: 8px 12px; + font-family: monospace; + white-space: pre-wrap; + color: #b0bec5; + border-top: none; +} +.packet-table tr.expanded + .payload-row { + display: table-row; +} +.toggle-btn { + cursor: pointer; + color: #aaa; + margin-right: 6px; + font-weight: bold; +} +.toggle-btn:hover { + color: #fff; +} {% endblock %} {% block body %}
| ID | +From | +To | +Port | +Links | +
|---|