Description
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user