Show presence in chat header

This commit is contained in:
rajchales-monito
2026-07-24 12:33:09 +02:00
parent 627891d0d0
commit b4e1d0ee1b
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -293,6 +293,14 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
background: #f8fbf9;
white-space: nowrap;
}
.visitor-summary-row .presence-dot {
border: 0;
padding: 0;
background: #c9d4ce;
}
.visitor-summary-row .presence-dot.active { background: #2f9e44; }
.visitor-summary-row .presence-dot.idle { background: #f59f00; }
.visitor-summary-row .presence-dot.offline { background: #c9d4ce; }
.visitor-details {
max-width: 980px;
color: var(--muted);
+1
View File
@@ -420,6 +420,7 @@ function renderActive() {
<div class="visitor-head">
<div class="visitor-summary-row">
<h2>${escapeHtml(conversationVisitorName(conversation))}</h2>
${presenceDot(conversation.visitorPresence)}
<span title="Zeme">${visitorCountry(conversation)}</span>
<span title="Doba na webu">${formatDuration(conversation.sessionSeconds)}</span>
<span title="Navstivene stranky">${Number(conversation.pageCount || 0)} str.</span>