fix(sidebar): move session timestamp below title to prevent truncation
This commit is contained in:
committed by
Hermes Agent
parent
c3251ea97d
commit
69b0a905a4
@@ -601,12 +601,18 @@ function renderSessionListFromCache(){
|
||||
timeLabel.textContent=_formatRelativeSessionTime(tsMs, now);
|
||||
if(tsMs) timeLabel.title=new Date(tsMs).toLocaleString();
|
||||
titleRow.appendChild(title);
|
||||
titleRow.appendChild(timeLabel);
|
||||
const metaBits=[];
|
||||
if(s.is_cli_session && s.source_tag) metaBits.push(s.source_tag);
|
||||
if(s.message_count) metaBits.push(t('n_messages', s.message_count));
|
||||
if(s.model) metaBits.push(String(s.model).split('/').pop());
|
||||
sessionText.appendChild(titleRow);
|
||||
if(tsMs){
|
||||
const timeLine=document.createElement('div');
|
||||
timeLine.className='session-time';
|
||||
timeLine.textContent=_formatRelativeSessionTime(tsMs, now);
|
||||
timeLine.title=new Date(tsMs).toLocaleString();
|
||||
sessionText.appendChild(timeLine);
|
||||
}
|
||||
if(metaBits.length){
|
||||
const meta=document.createElement('div');
|
||||
meta.className='session-meta';
|
||||
|
||||
Reference in New Issue
Block a user