v1.5.2 — 责善显示改进方案

- 责善列表项追加 → 反思内容
- 红色标注区分改进方案
This commit is contained in:
mac
2026-06-04 17:46:44 +08:00
parent 535af35911
commit 19ae81ae6e
2 changed files with 6 additions and 3 deletions

View File

@@ -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 = '<span class="bp-pillar-dot" style="background:' + (pillarColors[item.pillar.name] || '#94A3B8') + '"></span>';
var noteHtml = item.type === 'study' && item.note ? '<span class="bp-item-note">' + esc(item.note) + '</span>' : '';
var extra = '';
if (item.type === 'study' && item.note) extra = '<span class="bp-item-note">' + esc(item.note) + '</span>';
if (item.type === 'evening' && item.improvement) extra = '<span class="bp-item-note evening">→ ' + esc(item.improvement) + '</span>';
html += '<div class="bp-list-item">' +
dot +
'<span class="bp-item-pillar">' + item.pillar.name + '</span>' +
'<span class="bp-item-type ' + item.type + '">' + (typeLabels[item.type] || item.type) + '</span>' +
'<span class="bp-item-text">' + esc(item.text) + '</span>' +
noteHtml +
extra +
'</div>';
});
list.innerHTML = html;

View File

@@ -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);