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:
@@ -1126,7 +1126,6 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
|||||||
const inputBarOffset = useUIStore((state) => state.inputBarOffset);
|
const inputBarOffset = useUIStore((state) => state.inputBarOffset);
|
||||||
const persistChatDraft = useUIStore((state) => state.persistChatDraft);
|
const persistChatDraft = useUIStore((state) => state.persistChatDraft);
|
||||||
const inputSpellcheckEnabled = useUIStore((state) => state.inputSpellcheckEnabled);
|
const inputSpellcheckEnabled = useUIStore((state) => state.inputSpellcheckEnabled);
|
||||||
const editorFontSize = useUIStore((state) => state.editorFontSize);
|
|
||||||
const isExpandedInput = useUIStore((state) => state.isExpandedInput);
|
const isExpandedInput = useUIStore((state) => state.isExpandedInput);
|
||||||
const setExpandedInput = useUIStore((state) => state.setExpandedInput);
|
const setExpandedInput = useUIStore((state) => state.setExpandedInput);
|
||||||
const setTimelineDialogOpen = useUIStore((state) => state.setTimelineDialogOpen);
|
const setTimelineDialogOpen = useUIStore((state) => state.setTimelineDialogOpen);
|
||||||
@@ -5272,7 +5271,6 @@ const ChatInputComponent: React.FC<ChatInputProps> = ({ onOpenSettings, scrollTo
|
|||||||
maxHeight: !isComposerExpanded && textareaSize ? `${textareaSize.maxHeight}px` : undefined,
|
maxHeight: !isComposerExpanded && textareaSize ? `${textareaSize.maxHeight}px` : undefined,
|
||||||
borderTopLeftRadius: chatInputRadius,
|
borderTopLeftRadius: chatInputRadius,
|
||||||
borderTopRightRadius: chatInputRadius,
|
borderTopRightRadius: chatInputRadius,
|
||||||
fontSize: `${editorFontSize}px`,
|
|
||||||
}}
|
}}
|
||||||
rows={1}
|
rows={1}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user