v1.0.170: green dot instead of checkmark for active prompt

This commit is contained in:
2026-06-24 13:49:43 +04:00
parent 7cbfdc9589
commit e0cff8d85f
+1 -1
View File
@@ -652,7 +652,7 @@ function loadHistory(role) {
return;
}
promptHistory.innerHTML = d.versions.map(function(v) {
var isActive = v.is_active ? ' ' : '';
var isActive = v.is_active ? '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:4px;" title="активная"></span> ' : '';
var style = v.is_active ? 'font-weight:600;' : '';
return '<div style="display:flex;align-items:center;padding:4px 0;border-bottom:1px solid var(--brand-gray);font-size:11px;' + style + '">'
+ '<span style="flex:1;">' + isActive + escHtml(v.name) + ' <span style="color:var(--muted);">' + fmtDate(v.created_at) + '</span>'