fix: Correct Tencent Cloud provider identifier and update UI styling
- Fixed typo in Tencent Cloud TI provider key from 'tentent-cloud-ti' to 'tencent-cloud-ti' - Enhanced ProviderSettings search input with search icon and custom styling - Adjusted button border radius for consistent UI design
This commit is contained in:
parent
640d3783a0
commit
00bf28b999
@ -562,7 +562,7 @@ export const PROVIDER_CONFIG = {
|
||||
models: 'https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Fm2vrveyu'
|
||||
}
|
||||
},
|
||||
'tentent-cloud-ti': {
|
||||
'tencent-cloud-ti': {
|
||||
api: {
|
||||
url: 'https://api.lkeap.cloud.tencent.com'
|
||||
},
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { DeleteOutlined, EditOutlined, PlusOutlined } from '@ant-design/icons'
|
||||
import { DeleteOutlined, EditOutlined, PlusOutlined, SearchOutlined } from '@ant-design/icons'
|
||||
import { DragDropContext, Draggable, Droppable, DropResult } from '@hello-pangea/dnd'
|
||||
import Scrollbar from '@renderer/components/Scrollbar'
|
||||
import { getProviderLogo } from '@renderer/config/providers'
|
||||
@ -126,6 +126,8 @@ const ProvidersList: FC = () => {
|
||||
type="text"
|
||||
placeholder={t('settings.provider.search')}
|
||||
value={searchText}
|
||||
style={{ borderRadius: 'var(--list-item-border-radius)', height: 35 }}
|
||||
suffix={<SearchOutlined style={{ color: 'var(--color-text-3)' }} />}
|
||||
onChange={(e) => setSearchText(e.target.value)}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Escape') {
|
||||
@ -191,7 +193,11 @@ const ProvidersList: FC = () => {
|
||||
</ProviderList>
|
||||
</Scrollbar>
|
||||
<AddButtonWrapper>
|
||||
<Button style={{ width: '100%' }} icon={<PlusOutlined />} onClick={onAddProvider} disabled={dragging}>
|
||||
<Button
|
||||
style={{ width: '100%', borderRadius: 'var(--list-item-border-radius)' }}
|
||||
icon={<PlusOutlined />}
|
||||
onClick={onAddProvider}
|
||||
disabled={dragging}>
|
||||
{t('button.add')}
|
||||
</Button>
|
||||
</AddButtonWrapper>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user