chat: clicking the title goes back to the conversation list

Same path as the back-caret — a bigger, easier target than the
icon. No-op when already on the list.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
thandClaude Opus 4.6 committed 2026-04-15 21:30:14 +02:00
1 parent 8020ddc787
commit d2f7b98e6c
4 files changed
+9 -4

No files matched your search

+6 -1
View File
@@ -749,7 +749,12 @@ function init() {
$('chat-refresh-btn').addEventListener('click', () => pollOnce().then(loadConversations));
$('chat-new-btn').addEventListener('click', openPickView);
$('chat-empty-start')?.addEventListener('click', openPickView);
$('chat-header-back').addEventListener('click', () => { showListView(); loadConversations(); });
const gotoList = () => { showListView(); loadConversations(); };
$('chat-header-back').addEventListener('click', gotoList);
// Clicking the "chat" title is the same as hitting the back caret —
// a second affordance so users don't have to aim at a small icon.
// No-op when already on the list (showListView is idempotent).
$('chat-flyout-title')?.addEventListener('click', gotoList);
$('chat-pick-back').addEventListener('click', showListView);
$('chat-thread-form').addEventListener('submit', sendMessage);
$('chat-thread-info')?.addEventListener('click', openRoomInfo);