From 5f8c78cf98f0b6f15f34f4873331e51c31958c38 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Fri, 23 May 2025 10:31:42 -0700 Subject: [PATCH] Fix UI bug with chat.html --- meshview/templates/chat.html | 194 +++++++++++++++++------------------ 1 file changed, 93 insertions(+), 101 deletions(-) diff --git a/meshview/templates/chat.html b/meshview/templates/chat.html index ee5ba5e..21a004c 100644 --- a/meshview/templates/chat.html +++ b/meshview/templates/chat.html @@ -2,140 +2,132 @@ {% block css %} .timestamp { - min-width:10em; + min-width: 10em; } -.chat-packet:nth-of-type(odd){ - background-color: #3a3a3a; /* Lighter than #2a2a2a */ +.chat-packet:nth-of-type(odd) { + background-color: #3a3a3a; } .chat-packet { border-bottom: 1px solid #555; padding: 8px; - border-radius: 8px; /* Adjust the value to make the corners more or less rounded */ + border-radius: 8px; } -.chat-packet:nth-of-type(even){ - background-color: #333333; /* Slightly lighter than the previous #181818 */ +.chat-packet:nth-of-type(even) { + background-color: #333333; } @keyframes flash { - 0% { background-color: #ffe066; } - 100% { background-color: inherit; } + 0% { background-color: #ffe066; } + 100% { background-color: inherit; } } .chat-packet.flash { - animation: flash 3.5s ease-out; + animation: flash 3.5s ease-out; } - {% endblock %} {% block body %} -
- {% for packet in packets %} -
- - {{ packet.import_time.strftime('%-I:%M:%S %p - %m/%d/%Y') }} - - - ✉️ {{ packet.from_node.channel }} - - - - {{ packet.from_node.long_name or (packet.from_node_id | node_id_to_hex) }} - - - - {{ packet.payload }} - -
- {% else %} - No packets found. - {% endfor %} +
+
+ {% for packet in packets %} +
+ + {{ packet.import_time.strftime('%-I:%M:%S %p - %m/%d/%Y') }} + + + ✉️ + {{ packet.from_node.channel }} + + + + {{ packet.from_node.long_name or (packet.from_node_id | node_id_to_hex) }} + + + + {{ packet.payload }} + +
+ {% else %} + No packets found. + {% endfor %} +
{% endblock %}