From bedefbf56b6e734af3173b49cf587c2397b15cbc Mon Sep 17 00:00:00 2001 From: xujingli <1220341948@qq.com> Date: Mon, 1 Jun 2026 21:10:32 +0800 Subject: [PATCH] Add input box font size setting --- src/renderer/components/InputBox/InputBox.tsx | 3 ++- src/renderer/i18n/locales/en/translation.json | 2 ++ .../i18n/locales/zh-Hans/translation.json | 2 ++ src/renderer/routes/settings/general.tsx | 24 ++++++++++++++++++- src/renderer/stores/atoms/settingsAtoms.ts | 1 + src/shared/defaults.ts | 1 + src/shared/types/settings.ts | 1 + 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/InputBox/InputBox.tsx b/src/renderer/components/InputBox/InputBox.tsx index 22788a59b7..8b177c6c66 100644 --- a/src/renderer/components/InputBox/InputBox.tsx +++ b/src/renderer/components/InputBox/InputBox.tsx @@ -164,6 +164,7 @@ const InputBox = forwardRef( const { height: viewportHeight } = useViewportSize() const pasteLongTextAsAFile = useSettingsStore((state) => state.pasteLongTextAsAFile) const shortcuts = useSettingsStore((state) => state.shortcuts) + const inputBoxFontSize = useSettingsStore((state) => state.inputBoxFontSize) const widthFull = useUIStore((s) => s.widthFull) || fullWidth const saveBlob = useSaveBlob() @@ -917,7 +918,7 @@ const InputBox = forwardRef(