fix(web): harmonize typography in chat messages and code blocks#1861
fix(web): harmonize typography in chat messages and code blocks#1861jvzijp wants to merge 4 commits intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6a99b8d. Configure here.
ApprovabilityVerdict: Approved Purely visual changes adjusting typography (font sizes, line heights, opacity) in chat messages and code blocks. No runtime behavior or logic is affected. You can customize Macroscope's approvability policy. Learn more. |

What Changed
than surrounding prose.
Why
Chat typography used a mix of ad-hoc pixel sizes (10px, 11px, 0.875rem) and inconsistent opacity values, making the UI feel unpolished and harder to maintain. Standardizing on Tailwind's type scale (text-xs = 12px) and bumping the timestamp opacity improves readability without changing the visual hierarchy. Switching user messages from <pre> to <div> changes previous behavior where plain text was rendered in a monospace font, which looked out of place compared to the rest of the UI.
UI Changes
Before
After
Checklist
Note
Low Risk
Low risk visual-only changes to chat typography and wrappers; main risk is minor layout/whitespace regressions in message rendering across browsers.
Overview
Standardizes chat UI typography by switching timestamp/meta/work-entry text to Tailwind
text-xsand increasing muted text opacity for better readability.Adjusts message rendering styles: user message bodies no longer use a
<pre>/font-monowrapper (while preserving whitespace via CSS), and markdown code presentation is tightened by addingleading-snugto code blocks and reducingpre codefont size to0.75rem.Reviewed by Cursor Bugbot for commit 8896a18. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Harmonize typography in chat messages and code blocks
<div>instead of<pre>, preserving whitespace viawhitespace-pre-wrap.text-[10px]/opacity-30totext-xs/opacity-50, and work entry lines move from a fixed11pxtotext-xs.leading-snug, and index.css reduces inline code font size from0.875remto0.75remand removes the explicit line-height.font-monofrom user messages changes the visual appearance of all user-sent text.Macroscope summarized 8896a18.