fix(frontend): refine activity layout and input state

This commit is contained in:
User
2026-07-14 10:32:11 +02:00
parent 6dbf93fff9
commit 3633a5ebd9
7 changed files with 87 additions and 7 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ const TAIL_PARAGRAPHS = 5;
export function formatModelActivity(text: string): string {
return text
.replace(/\r\n?/g, "\n")
.replace(/([.!?])(?=[A-ZÀ-ÖØ-Þ])/g, "$1\n\n")
.replace(/^[\t ]*[•‣–]\s+/gm, "- ")
.replace(/^(\d+)\)\s+/gm, (_, n) => `${n}. `)
.replace(/\n(?=\S)(?![-*+] |\d+\. |>|`|\|)/g, "\n\n")
@@ -40,7 +41,7 @@ export function ModelActivityPanel({ onClose }: { onClose: () => void }) {
const source = formatModelActivity(shown.join("\n\n"));
return (
<aside className="flex w-[30vw] max-w-[30vw] shrink-0 flex-col border-r border-border bg-sidebar">
<aside className="flex w-2/5 shrink-0 flex-col border-r border-border bg-sidebar">
<div className="flex items-center justify-between border-b border-border/60 px-3 py-3">
<h2 className="font-heading text-sm font-semibold text-foreground">Model activity</h2>
<div className="flex items-center gap-1">