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'
|
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'
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user