fix: turn off spell check #648

The next version will be released. close #648
This commit is contained in:
kangfenmao 2025-01-06 15:09:04 +08:00
parent 6a9bc103d7
commit 158f9bf1ad
8 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,7 @@ const PopupContainer: React.FC<Props> = ({ text, textareaProps, modalProps, reso
ref={textareaRef} ref={textareaRef}
rows={2} rows={2}
autoFocus autoFocus
spellCheck={false}
{...textareaProps} {...textareaProps}
value={textValue} value={textValue}
onInput={resizeTextArea} onInput={resizeTextArea}

View File

@ -124,6 +124,7 @@ const PopupContainer: React.FC<Props> = ({ resolve }) => {
label={t('agents.add.prompt')} label={t('agents.add.prompt')}
rules={[{ required: true }]} rules={[{ required: true }]}
style={{ position: 'relative' }}> style={{ position: 'relative' }}>
spellCheck={false}
<TextArea placeholder={t('agents.add.prompt.placeholder')} spellCheck={false} rows={10} /> <TextArea placeholder={t('agents.add.prompt.placeholder')} spellCheck={false} rows={10} />
</Form.Item> </Form.Item>
<Button <Button

View File

@ -397,6 +397,7 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic }) => {
autoFocus autoFocus
contextMenu="true" contextMenu="true"
variant="borderless" variant="borderless"
spellCheck={false}
rows={textareaRows} rows={textareaRows}
ref={textareaRef} ref={textareaRef}
style={{ fontSize }} style={{ fontSize }}

View File

@ -407,6 +407,7 @@ const PaintingsPage: FC = () => {
<TextArea <TextArea
value={painting.negativePrompt} value={painting.negativePrompt}
onChange={(e) => updatePaintingState({ negativePrompt: e.target.value })} onChange={(e) => updatePaintingState({ negativePrompt: e.target.value })}
spellCheck={false}
rows={4} rows={4}
/> />
<SettingTitle style={{ marginBottom: 5, marginTop: 15 }}> <SettingTitle style={{ marginBottom: 5, marginTop: 15 }}>
@ -437,6 +438,7 @@ const PaintingsPage: FC = () => {
variant="borderless" variant="borderless"
disabled={isLoading} disabled={isLoading}
value={painting.prompt} value={painting.prompt}
spellCheck={false}
onChange={(e) => updatePaintingState({ prompt: e.target.value })} onChange={(e) => updatePaintingState({ prompt: e.target.value })}
placeholder={isTranslating ? t('paintings.translating') : t('paintings.prompt_placeholder')} placeholder={isTranslating ? t('paintings.translating') : t('paintings.prompt_placeholder')}
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}

View File

@ -103,6 +103,7 @@ const AssistantMessagesSettings: FC<Props> = ({ assistant, updateAssistant, upda
value={messages[index].content} value={messages[index].content}
onChange={(e) => updateMessages(index, 'user', e.target.value)} onChange={(e) => updateMessages(index, 'user', e.target.value)}
placeholder={t('agents.edit.message.user.placeholder')} placeholder={t('agents.edit.message.user.placeholder')}
spellCheck={false}
rows={1} rows={1}
/> />
</Col> </Col>
@ -116,6 +117,7 @@ const AssistantMessagesSettings: FC<Props> = ({ assistant, updateAssistant, upda
value={messages[index + 1]?.content || ''} value={messages[index + 1]?.content || ''}
onChange={(e) => updateMessages(index + 1, 'assistant', e.target.value)} onChange={(e) => updateMessages(index + 1, 'assistant', e.target.value)}
placeholder={t('agents.edit.message.assistant.placeholder')} placeholder={t('agents.edit.message.assistant.placeholder')}
spellCheck={false}
rows={3} rows={3}
/> />
</Col> </Col>

View File

@ -43,6 +43,7 @@ const AssistantPromptSettings: React.FC<Props> = ({ assistant, updateAssistant,
value={prompt} value={prompt}
onChange={(e) => setPrompt(e.target.value)} onChange={(e) => setPrompt(e.target.value)}
onBlur={onUpdate} onBlur={onUpdate}
spellCheck={false}
style={{ minHeight: 'calc(80vh - 200px)', maxHeight: 'calc(80vh - 150px)' }} style={{ minHeight: 'calc(80vh - 200px)', maxHeight: 'calc(80vh - 150px)' }}
/> />
<HStack width="100%" justifyContent="flex-end" mt="10px"> <HStack width="100%" justifyContent="flex-end" mt="10px">

View File

@ -89,6 +89,7 @@ const AssistantSettings: FC = () => {
value={defaultAssistant.prompt} value={defaultAssistant.prompt}
onChange={(e) => updateDefaultAssistant({ ...defaultAssistant, prompt: e.target.value })} onChange={(e) => updateDefaultAssistant({ ...defaultAssistant, prompt: e.target.value })}
style={{ margin: '10px 0' }} style={{ margin: '10px 0' }}
spellCheck={false}
/> />
<SettingSubtitle <SettingSubtitle
style={{ style={{

View File

@ -211,6 +211,7 @@ const TranslatePage: FC = () => {
value={text} value={text}
onChange={(e) => setText(e.target.value)} onChange={(e) => setText(e.target.value)}
disabled={loading} disabled={loading}
spellCheck={false}
allowClear allowClear
/> />
<TranslateButton <TranslateButton