Skip to content

fix(app): apply UI font to prompt input - #45128

Open
feng-pip wants to merge 1 commit into
anomalyco:devfrom
feng-pip:fix/prompt-ui-font
Open

fix(app): apply UI font to prompt input#45128
feng-pip wants to merge 1 commit into
anomalyco:devfrom
feng-pip:fix/prompt-ui-font

Conversation

@feng-pip

Copy link
Copy Markdown

Issue for this PR

Closes #44873

Type of change

  • Bug fix

What does this PR do?

The V2 prompt editor and its placeholder inherited the body font, so the global UI font setting never reached the input box. The appearance settings update the sans font variable, but the prompt input did not opt into it.

This PR adds the font-sans utility class to both the prompt editor and the placeholder in packages/session-ui/src/v2/components/prompt-input/index.tsx, so they resolve to the configured UI font variable. The existing font-mono! override in shell mode is preserved.

How did you verify your code works?

  • Confirmed the input box and placeholder now use the configured global UI font.
  • Shell mode still renders monospace via the existing font-mono! classList override.

Screenshots / recordings

UI font change affecting input box and placeholder only.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

Global font setting does not apply to the input box

1 participant