💄 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:
EldestBard
2025-10-27 17:20:42 +08:00
committed by GitHub
parent 840382b5b5
commit ea42e60ddb

View File

@@ -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>