Make country badge visible

This commit is contained in:
rajchales-monito
2026-07-24 13:27:11 +02:00
parent ae088821e3
commit 942cee5d66
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -320,9 +320,22 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
white-space: nowrap; white-space: nowrap;
} }
.visitor-summary-row .country-pill { .visitor-summary-row .country-pill {
display: inline-flex;
align-items: center;
gap: 5px;
border-color: #d9e6df; border-color: #d9e6df;
background: #fbfdfb; background: #fbfdfb;
} }
.flag-emoji {
font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
font-size: 14px;
line-height: 1;
}
.country-code {
color: var(--muted);
font-size: 11px;
line-height: 1;
}
.visitor-summary-row .presence-dot { .visitor-summary-row .presence-dot {
border: 0; border: 0;
padding: 0; padding: 0;
+2 -1
View File
@@ -508,7 +508,8 @@ function statusButtons(item) {
function visitorCountry(item) { function visitorCountry(item) {
const countryCode = item.countryCode || countryFromLanguage(item.language) || countryFromTimezone(item.timezone); const countryCode = item.countryCode || countryFromLanguage(item.language) || countryFromTimezone(item.timezone);
const countryFlag = item.countryFlag || flag(countryCode); const countryFlag = item.countryFlag || flag(countryCode);
return countryCode ? `${countryFlag} ${escapeHtml(countryCode)}` : "zeme ?"; if (!countryCode) return `<span class="flag-emoji" aria-hidden="true">?</span><strong class="country-code">?</strong>`;
return `<span class="flag-emoji" aria-hidden="true">${countryFlag}</span><strong class="country-code">${escapeHtml(countryCode)}</strong>`;
} }
function visitorDetails(conversation) { function visitorDetails(conversation) {