Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

style(chat): compact answer typography on the front-page chat

rubenluetke10-beep11a7efcd7eab
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
index 0b1f10ed0a..41c3e82480 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentTimeline.tsx
@@ -81,7 +81,7 @@ export function AgentTimeline({
>
<div
className={cn(
- "text-reading",
+ "text-[15px] leading-[23px]",
bubbles
? "jarvis-user-bubble max-w-[80%] rounded-[20px] px-4 py-2.5"
: "jarvis-user-bubble max-w-[85%] rounded-lg px-4 py-3",
@@ -259,14 +259,19 @@ function Prose({ block }: { block: TextBlock }) {
<div
data-testid="agent-text"
className={cn(
- "prose prose-neutral max-w-none text-[17px] leading-[30px] text-foreground dark:prose-invert dark:text-foreground [overflow-wrap:anywhere]",
- "prose-p:my-2 prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground-strong",
- "prose-headings:font-display prose-headings:tracking-tight prose-headings:text-foreground-strong prose-h1:text-xl prose-h2:text-lg prose-h3:text-base",
+ // Compact reading size, like the Claude app: headings stay close to body
+ // size and set apart by weight and spacing, not by scale.
+ "prose prose-neutral max-w-none text-[15px] leading-[25px] text-foreground dark:prose-invert dark:text-foreground [overflow-wrap:anywhere]",
+ "[&>div>:first-child]:mt-0 [&>div>:last-child]:mb-0",
+ "prose-p:my-2.5 prose-p:text-foreground prose-li:text-foreground prose-strong:text-foreground-strong",
+ "prose-headings:mb-1.5 prose-headings:mt-5 prose-headings:font-semibold prose-headings:tracking-normal prose-headings:text-foreground-strong",
+ "prose-h1:text-[17px] prose-h1:leading-[25px] prose-h2:text-[16px] prose-h2:leading-[25px] prose-h3:text-[15px] prose-h3:leading-[25px] prose-h4:text-[15px]",
"prose-a:text-foreground-strong prose-a:underline prose-a:decoration-border-strong prose-a:underline-offset-2",
"prose-code:rounded prose-code:bg-secondary prose-code:px-1 prose-code:py-0.5 prose-code:font-mono prose-code:text-[0.85em] prose-code:font-normal prose-code:before:hidden prose-code:after:hidden",
- "prose-pre:my-2 prose-pre:bg-card prose-pre:text-[14px] prose-pre:leading-[22px]",
- "prose-li:my-0.5 prose-ul:my-2 prose-ol:my-2",
- "prose-table:my-3 prose-table:text-[15px] prose-table:leading-[22px]",
+ "prose-pre:my-2.5 prose-pre:bg-card prose-pre:text-[13px] prose-pre:leading-[20px]",
+ "prose-li:my-1 prose-ul:my-2.5 prose-ol:my-2.5 prose-ul:pl-5 prose-ol:pl-5 prose-li:pl-1",
+ "prose-hr:my-5",
+ "prose-table:my-3 prose-table:text-[14px] prose-table:leading-[21px]",
"prose-thead:text-foreground-strong prose-th:text-foreground-strong prose-td:text-foreground",
)}
>