Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): harmonize typography in chat messages and code blocks (#1861)
Jacob7c0849fe2e44
diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsxindex 327e77e57..366f92315 100644--- a/apps/web/src/components/ChatMarkdown.tsx+++ b/apps/web/src/components/ChatMarkdown.tsx@@ -165,7 +165,7 @@ function MarkdownCodeBlock({ code, children }: { code: string; children: ReactNo);return (- <div className="chat-markdown-codeblock">+ <div className="chat-markdown-codeblock leading-snug"><buttontype="button"className="chat-markdown-copy-button"diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsxindex 510082432..d733fb476 100644--- a/apps/web/src/components/chat/MessagesTimeline.tsx+++ b/apps/web/src/components/chat/MessagesTimeline.tsx@@ -428,7 +428,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({</Button>)}</div>- <p className="text-right text-[10px] text-muted-foreground/30">+ <p className="text-right text-xs text-muted-foreground/50">{formatTimestamp(row.message.createdAt, timestampFormat)}</p></div>@@ -515,7 +515,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({</div>);})()}- <p className="mt-1.5 text-[10px] text-muted-foreground/30">+ <p className="mt-1.5 text-xs text-muted-foreground/50">{formatMessageMeta(row.message.createdAt,row.message.streaming@@ -703,7 +703,7 @@ const UserMessageBody = memo(function UserMessageBody(props: {}return (- <div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">+ <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">{inlineNodes}</div>);@@ -731,7 +731,7 @@ const UserMessageBody = memo(function UserMessageBody(props: {}return (- <div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">+ <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">{inlineNodes}</div>);@@ -742,9 +742,9 @@ const UserMessageBody = memo(function UserMessageBody(props: {}return (- <pre className="whitespace-pre-wrap wrap-break-word font-mono text-sm leading-relaxed text-foreground">+ <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">{props.text}- </pre>+ </div>);});@@ -871,7 +871,7 @@ const SimpleWorkEntryRow = memo(function SimpleWorkEntryRow(props: {<div className="max-w-full"><pclassName={cn(- "truncate text-[11px] leading-5",+ "truncate text-xs leading-5",workToneClass(workEntry.tone),preview ? "text-muted-foreground/70" : "",)}diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex 120a3ea5e..71602ee05 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -335,8 +335,7 @@ label:has(> select#reasoning-effort) select {border: none;background: transparent;padding: 0;- line-height: 1.5;- font-size: 0.875rem;+ font-size: 0.75rem;}.chat-markdown .chat-markdown-codeblock {