fix: layout for antrophic api tips (#10579)

* fix: layout for antrophic api tips

* lint
This commit is contained in:
Tristan Zhang 2025-10-09 13:20:40 +08:00 committed by GitHub
parent d7bcd5a20e
commit ce642f17d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -467,14 +467,13 @@ const ProviderSetting: FC<Props> = ({ providerId }) => {
onBlur={onUpdateAnthropicHost}
/>
</Space.Compact>
<SettingHelpTextRow style={{ justifyContent: 'space-between' }}>
<SettingHelpText
style={{ marginLeft: 6, marginRight: '1em', whiteSpace: 'break-spaces', wordBreak: 'break-all' }}>
<SettingHelpTextRow style={{ flexDirection: 'column', alignItems: 'flex-start', gap: '4px' }}>
<SettingHelpText style={{ marginLeft: 6, whiteSpace: 'break-spaces', wordBreak: 'break-all' }}>
{t('settings.provider.anthropic_api_host_preview', {
url: anthropicHostPreview || '—'
})}
</SettingHelpText>
<SettingHelpText style={{ minWidth: 'fit-content', whiteSpace: 'normal' }}>
<SettingHelpText style={{ marginLeft: 6 }}>
{t('settings.provider.anthropic_api_host_tip')}
</SettingHelpText>
</SettingHelpTextRow>