Description

This commit is contained in:
Ian Gulliver
2026-07-25 08:42:24 -07:00
parent 9d0f570c85
commit 700b53d50c
3 changed files with 20 additions and 6 deletions
+4 -1
View File
@@ -42,6 +42,7 @@
.hero .loc { font-size: 6rem; font-weight: 800; line-height: 1; margin: 6px 0; }
.hero.ok .loc { color: #34d399; }
.hero.warn .loc { color: #fbbf24; font-size: 2.4rem; }
.hero .desc { color: #9ca3af; font-size: .9rem; margin-top: 8px; }
.status { font-size: 1.25rem; font-weight: 650; }
.ok { color: #34d399; } .warn { color: #fbbf24; } .err { color: #f87171; } .muted { color: #9ca3af; }
.rows { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
@@ -100,7 +101,9 @@
let html = '<div class="card hero ' + (hasLoc ? 'ok' : 'warn') + '">' +
'<div class="label">Put it away at</div>' +
'<div class="loc">' + (hasLoc ? escapeHtml(res.location) : 'no location') + '</div></div>';
'<div class="loc">' + (hasLoc ? escapeHtml(res.location) : 'no location') + '</div>' +
(res.description ? '<div class="desc">' + escapeHtml(res.description) + '</div>' : '') +
'</div>';
let status, rows = '';
if (res.previous_weight === undefined) {