From 19ae81ae6ec52b87411ffbcdb48de24281b06a9a Mon Sep 17 00:00:00 2001 From: mac Date: Thu, 4 Jun 2026 17:46:44 +0800 Subject: [PATCH] =?UTF-8?q?v1.5.2=20=E2=80=94=20=E8=B4=A3=E5=96=84?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=94=B9=E8=BF=9B=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 责善列表项追加 → 反思内容 - 红色标注区分改进方案 --- static/app.js | 8 +++++--- static/style.css | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/static/app.js b/static/app.js index 9f24956..3e39f89 100644 --- a/static/app.js +++ b/static/app.js @@ -1044,7 +1044,7 @@ (info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); }); } if (blueprintFilter === 'all' || blueprintFilter === 'evening') { - (info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, type: 'evening'}); }); + (info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, improvement: ei.improvement, type: 'evening'}); }); } if (blueprintFilter === 'all' || blueprintFilter === 'study') { (info.study_items || []).forEach(function(si){ items.push({pillar: p, text: si.name, type: 'study', done: si.done, note: si.note}); }); @@ -1064,13 +1064,15 @@ var html = ''; items.forEach(function(item){ var dot = ''; - var noteHtml = item.type === 'study' && item.note ? '' + esc(item.note) + '' : ''; + var extra = ''; + if (item.type === 'study' && item.note) extra = '' + esc(item.note) + ''; + if (item.type === 'evening' && item.improvement) extra = '→ ' + esc(item.improvement) + ''; html += '
' + dot + '' + item.pillar.name + '' + '' + (typeLabels[item.type] || item.type) + '' + '' + esc(item.text) + '' + - noteHtml + + extra + '
'; }); list.innerHTML = html; diff --git a/static/style.css b/static/style.css index 2d7e088..64ce874 100644 --- a/static/style.css +++ b/static/style.css @@ -1507,6 +1507,7 @@ body { margin-left: 4px; white-space: nowrap; } +.bp-item-note.evening { color: var(--danger); } .bp-list-empty { font-size: 13px; color: var(--text-muted);