fix: real FA icon on saved-chat rows (no more \\f086 leak); rows truncate to the drawer width on mobile

This commit is contained in:
Daniel 2026-09-09 05:02:19 +02:00
parent 609dbe70b1
commit 3a55937177
2 changed files with 3 additions and 2 deletions

View file

@ -345,8 +345,8 @@ body.assistant-workspace .assistant-learning-view { min-height: 0; height: 100vh
.assistant-new-chat:hover, .assistant-goback-rail:hover { background:var(--g100); }
.assistant-create-image { display:flex; align-items:center; gap:10px; width:100%; background:none; color:var(--purple); font-weight:700; font-size:14px; padding:10px 12px; border-radius:8px; text-align:left; }
.assistant-create-image:hover { background:var(--purple-light,#faf5ff); }
.assistant-saved-chat { flex-direction:row; align-items:center; gap:10px; border:none; border-radius:8px; padding:9px 12px; }
.assistant-saved-chat::before { content:'\\f086'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:13px; color:var(--g400); }
.assistant-saved-chat { flex-direction:row; align-items:center; gap:10px; border:none; border-radius:8px; padding:9px 12px; min-width:0; width:100%; }
.assistant-saved-chat-icon { font-size:13px; color:var(--g400); width:16px; text-align:center; flex:0 0 auto; }
.assistant-saved-chat-title { flex:1 1 auto; min-width:0; }
.assistant-saved-chat-meta { flex:0 0 auto; }
.assistant-saved-chat-menu { position:static; opacity:1; pointer-events:auto; }

View file

@ -1848,6 +1848,7 @@ import {
var title = chat.title || 'Saved chat';
var pinned = isChatPinned(chat.id);
return '<button type="button" class="assistant-saved-chat' + (pinned ? ' pinned' : '') + '" data-assistant-load-chat="' + escapeAttr(chat.id) + '" aria-label="Open saved chat" title="' + escapeAttr(title) + '">' +
'<i class="fas fa-comment assistant-saved-chat-icon"></i>' +
'<span class="assistant-saved-chat-title">' + (pinned ? '<i class="fas fa-thumbtack"></i> ' : '') + escapeHtml(title) + '</span>' +
'<span class="assistant-saved-chat-meta">' + escapeHtml(formatSavedDate(chat.updated_at || chat.created_at)) + '</span>' +
'<span class="assistant-saved-chat-menu" role="button" tabindex="0" data-assistant-chat-menu="' + escapeAttr(chat.id) + '" aria-label="Chat options" title="Options"><i class="fas fa-ellipsis-vertical"></i></span>' +