mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
💄 style: The error details of the connectivity check lead to a layout problem (#9872)
* give ProviderChecker's Error component a maxWidth * add warp property to Highlighter --------- Co-authored-by: daryl saxton <admin@dylsxtn.com>
This commit is contained in:
@@ -19,11 +19,16 @@ const Error = memo<{ error: ChatMessageError }>(({ error }) => {
|
||||
const providerName = useProviderName(error.body?.provider);
|
||||
|
||||
return (
|
||||
<Flexbox gap={8} style={{ width: '100%' }}>
|
||||
<Flexbox gap={8} style={{ maxWidth: 600, width: '100%' }}>
|
||||
<Alert
|
||||
extra={
|
||||
<Flexbox>
|
||||
<Highlighter actionIconSize={'small'} language={'json'} variant={'borderless'}>
|
||||
<Highlighter
|
||||
actionIconSize={'small'}
|
||||
language={'json'}
|
||||
variant={'borderless'}
|
||||
wrap={true}
|
||||
>
|
||||
{JSON.stringify(error.body || error, null, 2)}
|
||||
</Highlighter>
|
||||
</Flexbox>
|
||||
|
||||
Reference in New Issue
Block a user