v1.5.2 — 责善显示改进方案
- 责善列表项追加 → 反思内容 - 红色标注区分改进方案
This commit is contained in:
@@ -1044,7 +1044,7 @@
|
|||||||
(info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); });
|
(info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); });
|
||||||
}
|
}
|
||||||
if (blueprintFilter === 'all' || blueprintFilter === 'evening') {
|
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') {
|
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}); });
|
(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 = '';
|
var html = '';
|
||||||
items.forEach(function(item){
|
items.forEach(function(item){
|
||||||
var dot = '<span class="bp-pillar-dot" style="background:' + (pillarColors[item.pillar.name] || '#94A3B8') + '"></span>';
|
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">' +
|
html += '<div class="bp-list-item">' +
|
||||||
dot +
|
dot +
|
||||||
'<span class="bp-item-pillar">' + item.pillar.name + '</span>' +
|
'<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-type ' + item.type + '">' + (typeLabels[item.type] || item.type) + '</span>' +
|
||||||
'<span class="bp-item-text">' + esc(item.text) + '</span>' +
|
'<span class="bp-item-text">' + esc(item.text) + '</span>' +
|
||||||
noteHtml +
|
extra +
|
||||||
'</div>';
|
'</div>';
|
||||||
});
|
});
|
||||||
list.innerHTML = html;
|
list.innerHTML = html;
|
||||||
|
|||||||
@@ -1507,6 +1507,7 @@ body {
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
.bp-item-note.evening { color: var(--danger); }
|
||||||
.bp-list-empty {
|
.bp-list-empty {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
|
|||||||
Reference in New Issue
Block a user