Skip to content

feat(webchat): Add chat font size setting#3039

Closed
joshlewis wants to merge 1 commit into
openclaw:mainfrom
joshlewis:feature/webchat-font-size
Closed

feat(webchat): Add chat font size setting#3039
joshlewis wants to merge 1 commit into
openclaw:mainfrom
joshlewis:feature/webchat-font-size

Conversation

@joshlewis

Copy link
Copy Markdown

Summary

Adds a configurable font size option for the webchat interface.

Problem

Users who want larger text in webchat must rely on browser zoom, which can cause UI breakages and layout issues. Browser zoom isn't well-tested across all UI states.

Solution

Add an official font size setting in the chat controls that scales text without relying on browser zoom.

Options: Small (13px), Medium (14px, default), Large (16px), X-Large (18px)

Changes

  • Add chatFontSize setting to UiSettings in storage.ts
  • Add --font-size-chat CSS variable in base.css
  • Update chat text styles to use the CSS variable
  • Add applyChatFontSize() function to apply setting to document
  • Add font size dropdown control in chat controls UI
  • Add styles for the font size control

Testing

  • Tested locally with pnpm ui:dev
  • UI builds successfully (pnpm ui:build)
  • Existing tests pass

Resolves #3027

Adds a configurable font size option for the webchat interface.

Changes:
- Add chatFontSize setting to UiSettings (small/medium/large/x-large)
- Add --font-size-chat CSS variable in base.css
- Update chat text styles to use the CSS variable
- Add applyChatFontSize function to apply setting to document
- Add font size dropdown control in chat controls UI
- Add styles for the font size control

Resolves #3027
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Jan 28, 2026
@joshlewis

Copy link
Copy Markdown
Author

Hi! 👋

It looks like the lint failures are coming from code in main rather than from this PR's changes:

  • src/commands/doctor-config-flow.ts:131 — unused catch parameter (introduced in e2c437e)
  • src/infra/unhandled-rejections.fatal-detection.test.ts:13 — unbound method reference (introduced in 0770194)

Neither of these files were touched by this PR. Happy to rebase once those are resolved on main, or let me know if I'm missing something!

Thanks for your time reviewing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webchat: Add font size setting

1 participant