From c09ec958d64dc8600d0b21cd75d58fc233870a55 Mon Sep 17 00:00:00 2001 From: Emi Griffith Date: Sat, 11 Jul 2026 00:10:46 -0700 Subject: [PATCH] Stack the location head context top-down; drop sq-mi-cell wording (#19) The Weekly location card joined coordinates, cell size, climatology range and sample count into one dot-separated meta line. Stack them as one fact per line so the important context reads top-down instead of as a run of tags. Drop the '~N sq mi cell' wording from the Weekly/Day/Calendar meta lines and the map hint. --- static/app.js | 7 +++++-- static/calendar.js | 2 +- static/day.js | 2 +- static/index.html | 2 +- static/style.css | 3 +++ 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/static/app.js b/static/app.js index b3ac1bf..148fe18 100644 --- a/static/app.js +++ b/static/app.js @@ -131,8 +131,11 @@ function render(data) {

${placeLabel(data)}

-

${data.place ? coords + " · " : ""}~${cell.area_sq_mi} sq mi cell · climatology from ${yrs} - (${c.n_samples.toLocaleString()} days around this date)

+
    + ${data.place ? `
  • ${coords}
  • ` : ""} +
  • Climatology from ${yrs}
  • +
  • ${c.n_samples.toLocaleString()} days around this date
  • +
diff --git a/static/style.css b/static/style.css index 8c9750d..e7514fb 100644 --- a/static/style.css +++ b/static/style.css @@ -134,6 +134,9 @@ main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 60px; } .loc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; } .loc-head h2 { margin: 0 0 2px; font-size: 18px; } .loc-head .meta { color: var(--muted); font-size: 12.5px; margin: 0; } +/* Context stacked top-down, one fact per line, instead of dot-joined tags. */ +.loc-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } +.loc-meta li { color: var(--muted); font-size: 12.5px; line-height: 1.35; } .share { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; } .share button, .share .share-btn { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--border);