diff --git a/static/dashboard.js b/static/dashboard.js
index 03f96c5..721112a 100644
--- a/static/dashboard.js
+++ b/static/dashboard.js
@@ -281,14 +281,16 @@ function ladder(levels, price) {
if (price != null) rows.push({ here: true, v: +price });
rows.sort((a, b) => b.v - a.v);
const body = rows.map(row => {
- if (row.here) return `
| current price |
+ if (row.here) return `
| current price |
${fmt$(row.v)} | — | spot |
`;
const d = price != null ? row.v - price : null;
- return ` 0 ? "text-danger" : "text-success"}">
+ const cls = d == null ? "" : d > 0 ? "text-danger" : "text-success";
+ const icon = d == null ? "" : d > 0 ? "bi-arrow-up-short" : "bi-arrow-down-short";
+ return `
| ${esc(row.label)} |
- ${fmt$(row.v)} |
- ${d == null ? "" : signed(d) + (atr ? ` · ${signed(d / atr, 2)} ATR` : "")} |
- ${d == null ? "" : d > 0 ? "resistance" : "support"} |
`;
+ ${fmt$(row.v)} |
+ ${d == null ? "" : signed(d) + (atr ? ` · ${signed(d / atr, 2)} ATR` : "")} |
+ ${d == null ? "" : `${d > 0 ? "resistance" : "support"}`} | `;
}).join("");
return `| Level | Price |
vs. spot | Role |
${body}
`;