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' models: 'https://cloud.baidu.com/doc/WENXINWORKSHOP/s/Fm2vrveyu'
} }
}, },
'tentent-cloud-ti': { 'tencent-cloud-ti': {
api: { api: {
url: 'https://api.lkeap.cloud.tencent.com' 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 { DragDropContext, Draggable, Droppable, DropResult } from '@hello-pangea/dnd'
import Scrollbar from '@renderer/components/Scrollbar' import Scrollbar from '@renderer/components/Scrollbar'
import { getProviderLogo } from '@renderer/config/providers' import { getProviderLogo } from '@renderer/config/providers'
@ -126,6 +126,8 @@ const ProvidersList: FC = () => {
type="text" type="text"
placeholder={t('settings.provider.search')} placeholder={t('settings.provider.search')}
value={searchText} 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)} onChange={(e) => setSearchText(e.target.value)}
onKeyDown={(e) => { onKeyDown={(e) => {
if (e.key === 'Escape') { if (e.key === 'Escape') {
@ -191,7 +193,11 @@ const ProvidersList: FC = () => {
</ProviderList> </ProviderList>
</Scrollbar> </Scrollbar>
<AddButtonWrapper> <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')} {t('button.add')}
</Button> </Button>
</AddButtonWrapper> </AddButtonWrapper>