@devries-cameron20 / t3code Mirror · read-only / commits / 7c0849fe2e
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 06:15 UTC

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

Jacob committed Apr 10, 2026 at 02:52 UTC 7c0849fe2e449c25ff43a1d5993f6f75b2be3a59
3 files changed +9 -10
apps/web/src/components/ChatMarkdown.tsx
+1 -1
@@ -165,7 +165,7 @@ function MarkdownCodeBlock({ code, children }: { code: string; children: ReactNo
165 );
166
167 return (
168 - <div className="chat-markdown-codeblock">
168 + <div className="chat-markdown-codeblock leading-snug">
169 <button
170 type="button"
171 className="chat-markdown-copy-button"
apps/web/src/components/chat/MessagesTimeline.tsx
+7 -7
@@ -428,7 +428,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
428 </Button>
429 )}
430 </div>
431 - <p className="text-right text-[10px] text-muted-foreground/30">
431 + <p className="text-right text-xs text-muted-foreground/50">
432 {formatTimestamp(row.message.createdAt, timestampFormat)}
433 </p>
434 </div>
@@ -515,7 +515,7 @@ export const MessagesTimeline = memo(function MessagesTimeline({
515 </div>
516 );
517 })()}
518 - <p className="mt-1.5 text-[10px] text-muted-foreground/30">
518 + <p className="mt-1.5 text-xs text-muted-foreground/50">
519 {formatMessageMeta(
520 row.message.createdAt,
521 row.message.streaming
@@ -703,7 +703,7 @@ const UserMessageBody = memo(function UserMessageBody(props: {
703 }
704
705 return (
706 - <div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">
706 + <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">
707 {inlineNodes}
708 </div>
709 );
@@ -731,7 +731,7 @@ const UserMessageBody = memo(function UserMessageBody(props: {
731 }
732
733 return (
734 - <div className="wrap-break-word whitespace-pre-wrap font-mono text-sm leading-relaxed text-foreground">
734 + <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">
735 {inlineNodes}
736 </div>
737 );
@@ -742,9 +742,9 @@ const UserMessageBody = memo(function UserMessageBody(props: {
742 }
743
744 return (
745 - <pre className="whitespace-pre-wrap wrap-break-word font-mono text-sm leading-relaxed text-foreground">
745 + <div className="whitespace-pre-wrap wrap-break-word text-sm leading-relaxed text-foreground">
746 {props.text}
747 - </pre>
747 + </div>
748 );
749 });
750
@@ -871,7 +871,7 @@ const SimpleWorkEntryRow = memo(function SimpleWorkEntryRow(props: {
871 <div className="max-w-full">
872 <p
873 className={cn(
874 - "truncate text-[11px] leading-5",
874 + "truncate text-xs leading-5",
875 workToneClass(workEntry.tone),
876 preview ? "text-muted-foreground/70" : "",
877 )}
apps/web/src/index.css
+1 -2
@@ -335,8 +335,7 @@ label:has(> select#reasoning-effort) select {
335 border: none;
336 background: transparent;
337 padding: 0;
338 - line-height: 1.5;
339 - font-size: 0.875rem;
338 + font-size: 0.75rem;
339 }
340
341 .chat-markdown .chat-markdown-codeblock {