More layout fiddling and error page

This commit is contained in:
Gregory Schier
2023-03-04 22:26:00 -08:00
parent ae24cd4939
commit 8ad301a666
12 changed files with 96 additions and 40 deletions

View File

@@ -122,13 +122,16 @@ export function ResponsePane({ requestId, className }: Props) {
))}
</HStack>
</ScrollArea>
{viewMode === 'pretty' && contentForIframe !== null ? (
<iframe
title="Response preview"
srcDoc={contentForIframe}
sandbox="allow-scripts allow-same-origin"
className="h-full w-full rounded-lg"
/>
<div className="pl-2">
<iframe
title="Response preview"
srcDoc={contentForIframe}
sandbox="allow-scripts allow-same-origin"
className="h-full w-full rounded-lg"
/>
</div>
) : response?.body ? (
<Editor
valueKey={`${contentType}:${response.body}`}