Skip to content

fix: honor web font size setting#1394

Open
justjavac wants to merge 4 commits into
MoonshotAI:mainfrom
justjavac:fix/web-font-size-setting
Open

fix: honor web font size setting#1394
justjavac wants to merge 4 commits into
MoonshotAI:mainfrom
justjavac:fix/web-font-size-setting

Conversation

@justjavac

Copy link
Copy Markdown
Contributor

Related Issue

No linked issue.

Problem

The Kimi Web settings dialog exposes a font size preference, but several high-visibility areas kept fixed font-size values or sidebar-local overrides. As a result, changing the preference did not affect chat reading text, composer text, or sidebar session text consistently.

What changed

  • Route the web font size preference through a base CSS variable and derive compact UI, reading content, and sidebar font sizes from it.
  • Replace fixed font sizes in chat Markdown, the composer textarea, sidebar branding, and session rows with the relevant derived tokens.
  • Update the design-system reference for the new font-size token chain.
  • Add a patch changeset for the bundled web UI fix.

Verification

  • node apps/kimi-web/scripts/check-style.mjs
  • apps/kimi-web/node_modules/.bin/vue-tsc.cmd --noEmit
  • git diff --check

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. No automated test was added for this CSS variable preference wiring; the relevant validation is listed above.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jul 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 42e2ebf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d0b469677

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-web/src/components/Sidebar.vue
Comment thread apps/kimi-web/src/components/chat/Markdown.vue
@pkg-pr-new

pkg-pr-new Bot commented Jul 6, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@42e2ebf
npx https://pkg.pr.new/@moonshot-ai/kimi-code@42e2ebf

commit: 42e2ebf

@liruifengv liruifengv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants