remove em dashes

This commit is contained in:
2026-04-09 21:07:28 +04:00
parent 5f20b41e91
commit 79ba63d86b
31 changed files with 154 additions and 154 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
visitors as soon as the new bundle is deployed.
Per-page custom CSS is still inlined in page.ejs (it's per-request data,
not a build artifact) kept in a separate <style> block AFTER this
not a build artifact) - kept in a separate <style> block AFTER this
file is loaded so it always wins on specificity ties. */
:root {
@@ -126,7 +126,7 @@ h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.incident-update .body code { background: var(--bg); padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.85em; }
.past-incidents { margin-top: 3rem; }
.past-incidents h2 { font-size: 1.1rem; margin-bottom: 1rem; }
/* Past incidents Atlassian-style: grouped by date with light typography. */
/* Past incidents - Atlassian-style: grouped by date with light typography. */
.past-day { margin-bottom: 2rem; }
.past-day-header { font-size: 0.95rem; font-weight: 600; color: var(--fg); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin: 0 0 1rem; }
.past-day-empty { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }
+4 -4
View File
@@ -31,7 +31,7 @@
var timeOpts = { hour: "2-digit", minute: "2-digit" };
if (barFrequency === "hourly") {
return start.toLocaleDateString(undefined, dateOpts) + ", " +
start.toLocaleTimeString(undefined, timeOpts) + " " +
start.toLocaleTimeString(undefined, timeOpts) + " - " +
end.toLocaleTimeString(undefined, timeOpts);
}
return start.toLocaleDateString(undefined, { weekday: "short", month: "short", day: "numeric" });
@@ -51,11 +51,11 @@
var lat = latRaw == null ? null : parseInt(latRaw, 10);
if (!start) return;
// Full precision pct so the formatter can decide. Anything below 100% gets
// 2 truncated (not rounded) decimals same rule as the page-level uptime
// 2 truncated (not rounded) decimals - same rule as the page-level uptime
// numbers, so a bucket with one failed check never displays as "100%".
var pct = total > 0 ? (100 * up / total) : null;
var pctText;
if (pct == null) pctText = "";
if (pct == null) pctText = "-";
else if (pct >= 100) pctText = "100%";
else pctText = (Math.floor(pct * 100) / 100).toFixed(2) + "%";
var html = '<div class="head">' + fmtBucketRange(start) + "</div>";
@@ -67,7 +67,7 @@
html += '<div class="row"><span>Avg ping</span><span>' + lat + "ms</span></div>";
}
} else {
html += '<div class="row"><span>No data</span><span></span></div>';
html += '<div class="row"><span>No data</span><span>-</span></div>';
}
tooltip.innerHTML = html;
tooltip.style.display = "block";