Use <pre> tag inside JsonView component for consistency
This commit is contained in:
parent
2d252a389c
commit
18ca6e28a7
1 changed files with 14 additions and 14 deletions
|
|
@ -75,9 +75,9 @@ const HistoryAndNotifications = ({
|
|||
<Copy size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<pre className="whitespace-pre-wrap break-words bg-background p-2 rounded">
|
||||
<div className="bg-background p-2 rounded">
|
||||
<JsonView data={request.request} />
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
{request.response && (
|
||||
<div className="mt-2">
|
||||
|
|
@ -92,9 +92,9 @@ const HistoryAndNotifications = ({
|
|||
<Copy size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<pre className="whitespace-pre-wrap break-words bg-background p-2 rounded">
|
||||
<div className="bg-background p-2 rounded">
|
||||
<JsonView data={request.response} />
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
|
@ -143,11 +143,11 @@ const HistoryAndNotifications = ({
|
|||
<Copy size={16} />
|
||||
</button>
|
||||
</div>
|
||||
<pre className="whitespace-pre-wrap break-words bg-background p-2 rounded">
|
||||
<div className="bg-background p-2 rounded">
|
||||
<JsonView
|
||||
data={JSON.stringify(notification, null, 2)}
|
||||
/>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue