web: give chat details a real back route

Opening a chat now pushes /chat/:id, so Android/browser Back returns to the
chat list rather than the previous destination. The conversation header owns a
compact Back to chats control matching the create pane, replacing the
full-width Back to list row on phones.
This commit is contained in:
2026-10-20 03:25:31 +01:00
parent 526c19fc21
commit c291327610
6 changed files with 90 additions and 10 deletions
+8
View File
@@ -889,3 +889,11 @@
.chat-question-error { color: var(--bad); font-size: 12px; }
.chat-question-controls { display: flex; gap: 10px; }
.chat-question-submit { padding: 6px 12px; }
/* The conversation's own compact Back control, matching the create pane. The
narrow layout is where the chat list is covered; wide keeps the two panes. */
.chat-bar-lead { display: flex; align-items: flex-start; gap: 8px; min-width: 0; flex: 1 1 auto; }
.chat-back { display: none; }
@media (max-width: 599px) {
.chat-back { display: inline-flex; }
}