mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-16 20:46:08 +00:00
💄 style(DevPanel): improve json display (#7978)
This commit is contained in:
@@ -9,7 +9,9 @@ interface JsonViewerProps {
|
||||
const JsonViewer = memo<JsonViewerProps>(({ data }) => {
|
||||
return (
|
||||
<Flexbox style={{ overflow: 'scroll' }}>
|
||||
<Highlighter language={'json'}>{JSON.stringify(data, null, 2)}</Highlighter>
|
||||
<Highlighter language={'json'} style={{ overflow: 'scroll', whiteSpace: 'pre' }}>
|
||||
{JSON.stringify(data, null, 2)}
|
||||
</Highlighter>
|
||||
</Flexbox>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user