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:
kangfenmao 2025-03-04 10:35:56 +08:00
parent 640d3783a0
commit 00bf28b999
2 changed files with 9 additions and 3 deletions

View File

@ -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'
},

View File

@ -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>