Skip to content

feat: add extension widget font size setting - #733

Open
dingxiaobo wants to merge 1 commit into
agegr:mainfrom
dingxiaobo:font-size
Open

feat: add extension widget font size setting#733
dingxiaobo wants to merge 1 commit into
agegr:mainfrom
dingxiaobo:font-size

Conversation

@dingxiaobo

Copy link
Copy Markdown
Contributor

Adds a configurable font size for extension widget content, mirroring the existing chat font size control.

dxb_screen_2026-09-06_14-04-02

Mirror chat font size: reuse useChatAppearance to store
extensionWidgetFontSize (default 14, 12-24) in localStorage and expose
--extension-widget-font-size. Both above- and below-editor widget panels
share .extension-widget-content, so one variable covers them.

- hooks/useChatAppearance.ts: add field, clamp, CSS var, setter;
  refactor setPreference via clampByKey/storageKeyFor switch
- app/globals.css: .extension-widget-content uses the variable
- components/SettingsPanel.tsx: range slider + reset, next to chat font size
- i18n (en/zh-CN/zh-TW): settings.extensionWidgetFontSize + reset label
- components/ChatAppearance.test.mjs: clampExtensionWidgetFontSize cases
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.

1 participant