web: unify detail headers, queue follow-ups, move thinking outside bubbles

Every detail screen now owns one 44px chevron Back control beside its title.
Sending appends the user's message immediately and keeps Send available beside
Stop so a follow-up can be queued. Reasoning renders above the answer bubble
rather than inside it.
This commit is contained in:
2026-10-20 10:37:57 +01:00
parent 607356702a
commit 3f8eefe06e
9 changed files with 157 additions and 81 deletions
+19
View File
@@ -75,3 +75,22 @@ export function kvMono(key, value) {
h("span", { class: "kv-val" }, h("code", { text: value })),
);
}
/** A 24px chevron-left for the one Back control every detail screen uses. */
export function backChevronIcon(className = "back-chevron") {
const NS = "http://www.w3.org/2000/svg";
const svg = document.createElementNS(NS, "svg");
svg.setAttribute("class", className);
svg.setAttribute("viewBox", "0 0 24 24");
svg.setAttribute("aria-hidden", "true");
svg.setAttribute("focusable", "false");
const path = document.createElementNS(NS, "path");
path.setAttribute("d", "M15 5 8 12l7 7");
path.setAttribute("fill", "none");
path.setAttribute("stroke", "currentColor");
path.setAttribute("stroke-width", "2");
path.setAttribute("stroke-linecap", "round");
path.setAttribute("stroke-linejoin", "round");
svg.append(path);
return svg;
}