refactor: remove unused editor font size styling from chat input

Stops reading editor font size from UI state in ChatInput
Removes inline font-size styling from the text area
This commit is contained in:
Bohdan Triapitsyn
2026-07-11 18:17:21 +03:00
parent b0200bb3f2
commit 5c65462454
@@ -1126,7 +1126,6 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
const inputBarOffset = useUIStore((state) => state.inputBarOffset);
const persistChatDraft = useUIStore((state) => state.persistChatDraft);
const inputSpellcheckEnabled = useUIStore((state) => state.inputSpellcheckEnabled);
const editorFontSize = useUIStore((state) => state.editorFontSize);
const isExpandedInput = useUIStore((state) => state.isExpandedInput);
const setExpandedInput = useUIStore((state) => state.setExpandedInput);
const setTimelineDialogOpen = useUIStore((state) => state.setTimelineDialogOpen);
@@ -5272,7 +5271,6 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
maxHeight: !isComposerExpanded && textareaSize ? `${textareaSize.maxHeight}px` : undefined,
borderTopLeftRadius: chatInputRadius,
borderTopRightRadius: chatInputRadius,
fontSize: `${editorFontSize}px`,
}}
rows={1}
/>