fix(sidebar): move session timestamp below title to prevent truncation

This commit is contained in:
Nathan Esquenazi
2026-04-14 19:04:49 +00:00
committed by Hermes Agent
parent c3251ea97d
commit 69b0a905a4
2 changed files with 8 additions and 2 deletions

View File

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