style: improved layout and styling
This commit is contained in:
parent
272efaf76e
commit
3b250d7d78
@ -177,7 +177,7 @@ const ProviderSetting: FC<Props> = ({ provider: _provider }) => {
|
|||||||
<SettingContainer theme={theme}>
|
<SettingContainer theme={theme}>
|
||||||
<SettingTitle>
|
<SettingTitle>
|
||||||
<Flex align="center">
|
<Flex align="center">
|
||||||
<span>{provider.isSystem ? t(`provider.${provider.id}`) : provider.name}</span>
|
<ProviderName>{provider.isSystem ? t(`provider.${provider.id}`) : provider.name}</ProviderName>
|
||||||
{officialWebsite! && (
|
{officialWebsite! && (
|
||||||
<Link target="_blank" href={providerConfig.websites.official}>
|
<Link target="_blank" href={providerConfig.websites.official}>
|
||||||
<ExportOutlined style={{ marginLeft: '8px', color: 'var(--color-text)', fontSize: '12px' }} />
|
<ExportOutlined style={{ marginLeft: '8px', color: 'var(--color-text)', fontSize: '12px' }} />
|
||||||
@ -255,7 +255,12 @@ const ProviderSetting: FC<Props> = ({ provider: _provider }) => {
|
|||||||
)}
|
)}
|
||||||
<SettingSubtitle style={{ marginBottom: 5 }}>{t('common.models')}</SettingSubtitle>
|
<SettingSubtitle style={{ marginBottom: 5 }}>{t('common.models')}</SettingSubtitle>
|
||||||
{Object.keys(modelGroups).map((group) => (
|
{Object.keys(modelGroups).map((group) => (
|
||||||
<Card key={group} type="inner" title={group} style={{ marginBottom: '10px' }} size="small">
|
<Card
|
||||||
|
key={group}
|
||||||
|
type="inner"
|
||||||
|
title={group}
|
||||||
|
style={{ marginBottom: '10px', border: '0.5px solid var(--color-border)' }}
|
||||||
|
size="small">
|
||||||
{modelGroups[group].map((model) => (
|
{modelGroups[group].map((model) => (
|
||||||
<ModelListItem key={model.id}>
|
<ModelListItem key={model.id}>
|
||||||
<ModelListHeader>
|
<ModelListHeader>
|
||||||
@ -330,4 +335,9 @@ const SettingIcon = styled(SettingOutlined)`
|
|||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const ProviderName = styled.span`
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
`
|
||||||
|
|
||||||
export default ProviderSetting
|
export default ProviderSetting
|
||||||
|
|||||||
@ -9,6 +9,7 @@ export const SettingContainer = styled.div<{ theme?: ThemeMode }>`
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
height: calc(100vh - var(--navbar-height));
|
height: calc(100vh - var(--navbar-height));
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
padding-top: 15px;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
font-family: Ubuntu;
|
font-family: Ubuntu;
|
||||||
background: ${(props) => (props.theme === 'dark' ? 'transparent' : 'var(--color-background-soft)')};
|
background: ${(props) => (props.theme === 'dark' ? 'transparent' : 'var(--color-background-soft)')};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user