refactor(Inputbar): reposition MentionModelsButton for improved accessibility
- Moved MentionModelsButton to a new position within the Inputbar component for better user experience. - Ensured consistent functionality while enhancing the layout of the input toolbar.
This commit is contained in:
parent
9ebc20882b
commit
36966cfc14
@ -716,11 +716,6 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic, topic }) =
|
|||||||
</ToolbarButton>
|
</ToolbarButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<AttachmentButton model={model} files={files} setFiles={setFiles} ToolbarButton={ToolbarButton} />
|
<AttachmentButton model={model} files={files} setFiles={setFiles} ToolbarButton={ToolbarButton} />
|
||||||
<MentionModelsButton
|
|
||||||
mentionModels={mentionModels}
|
|
||||||
onMentionModel={(model) => onMentionModel(model, mentionFromKeyboard)}
|
|
||||||
ToolbarButton={ToolbarButton}
|
|
||||||
/>
|
|
||||||
<Tooltip placement="top" title={t('chat.input.web_search')} arrow>
|
<Tooltip placement="top" title={t('chat.input.web_search')} arrow>
|
||||||
<ToolbarButton type="text" onClick={onEnableWebSearch}>
|
<ToolbarButton type="text" onClick={onEnableWebSearch}>
|
||||||
<GlobalOutlined
|
<GlobalOutlined
|
||||||
@ -743,6 +738,11 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic, topic }) =
|
|||||||
ToolbarButton={ToolbarButton}
|
ToolbarButton={ToolbarButton}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
<MentionModelsButton
|
||||||
|
mentionModels={mentionModels}
|
||||||
|
onMentionModel={(model) => onMentionModel(model, mentionFromKeyboard)}
|
||||||
|
ToolbarButton={ToolbarButton}
|
||||||
|
/>
|
||||||
<Tooltip placement="top" title={t('chat.input.clear', { Command: cleanTopicShortcut })} arrow>
|
<Tooltip placement="top" title={t('chat.input.clear', { Command: cleanTopicShortcut })} arrow>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={t('chat.input.clear.content')}
|
title={t('chat.input.clear.content')}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user