v2: 移除header-sub,在header-title前添加模式SVG图标作为标识区分
This commit is contained in:
@@ -350,10 +350,12 @@
|
||||
function renderHeader() {
|
||||
const c = $('header-center');
|
||||
if (state.view !== 'chat' || !state.sessionId) { c.innerHTML = ''; return; }
|
||||
// 会话状态改由顶部 phase-bar 状态胶囊展示(自 index 同步);标题下仅保留模式文案
|
||||
const modeIcons = {
|
||||
secretary: '<svg class="header-mode-icon" viewBox="0 0 24 24"><path d="M6 3h12l4 6-10 13L2 9z"></path><polyline points="2 9 22 9"></polyline><polyline points="10 3 8 9 12 22"></polyline><polyline points="14 3 16 9 12 22"></polyline></svg>',
|
||||
vision: '<svg class="header-mode-icon" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>',
|
||||
};
|
||||
c.innerHTML =
|
||||
'<div class="header-title">' + esc(state.sessionTitle || state.sessionId) + '</div>' +
|
||||
'<div class="header-sub"><span class="mode">' + esc(MODES[state.mode].label) + '</span></div>';
|
||||
'<div class="header-title">' + (modeIcons[state.mode] || '') + esc(state.sessionTitle || state.sessionId) + '</div>';
|
||||
}
|
||||
|
||||
// ---------- 模式切换区 ----------
|
||||
|
||||
Reference in New Issue
Block a user