Skip to content

Chat font size setting - #8

Merged
devswha merged 1 commit into
devswha:mainfrom
Yoonwoo-Ha:feat/chat-font-size
Sep 23, 2026
Merged

devswha merged 1 commit into
devswha:mainfrom
Yoonwoo-Ha:feat/chat-font-size

Conversation

@Yoonwoo-Ha

Copy link
Copy Markdown
Contributor

Summary

Terminal text has a size setting, but chat text didn't. This PR adds Settings → Chat → Chat font size, a − / + stepper from 11 to 24px that works like the terminal one.

  • Until you choose a size, chat text follows the density setting: 14px for comfortable, 13px for compact. A chosen size is saved on the device along with the other settings.
  • The chat view multiplies the text-size tokens by chosen / density size (--chat-scale), and the transcript uses the scaled tokens under the same names. Messages, the user's bubbles, code blocks and prompt cards all grow together.
  • The rest of the UI keeps its size. So does the composer's text: it stays at 16px, because iOS zooms the page when you type into a smaller input.

4 files changed, including a new settings.test.ts. This PR doesn't depend on #5, #6 or #7. The only overlap is with #5, which removes scroll-behavior: smooth from the same .chat-view rule, so whichever PR merges second needs a one-line rebase.

Testing

  • bun run typecheck passes and bun test passes 257/257. On main without this PR it's 256; the extra one is the new settings test.
  • Headless Chrome against a test server, raising the size from 14px to 18px:
    • chat body text went from 14 to 18px
    • code went from 12 to 15.4px, and the user's bubble scaled by the same ratio
    • the sidebar and the composer didn't change
    • the size was still 18px after a reload

🤖 Generated with Claude Code

Terminal font size had a setting, the chat's text did not. Settings → Chat
now has a Chat font size stepper (11–24px). Until one is chosen it follows
the density (14px comfortable, 13px compact); a chosen size is kept per
device with the other settings. The chat view scales the type tokens by the
chosen size over the density's, and the transcript uses the scaled ones, so
messages, code blocks and prompt cards grow together while the rest of the
UI, and the composer's 16px (below which iOS zooms), stay as they are.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@devswha
devswha merged commit 11d96f8 into devswha:main Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants