fix(web): harmonize typography in chat messages and code blocks (#1861)

This commit is contained in:
Jacob authored and Julius Marminge committed 2026-04-13 14:40:12 -07:00
1 parent 754b9fb24a
commit 69d2a1cdb4
3 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -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">
<button
type="button"
className="chat-markdown-copy-button"
@@ -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">
<p
className={cn(
"truncate text-[11px] leading-5",
"truncate text-xs leading-5",
workToneClass(workEntry.tone),
preview ? "text-muted-foreground/70" : "",
)}
+1 -2
View File
@@ -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 {