Fix web view height

This commit is contained in:
Gregory Schier
2023-04-04 07:51:41 -07:00
parent c5d6e7d74a
commit b48ed0399e
5 changed files with 29 additions and 12 deletions

View File

@@ -16,12 +16,12 @@ export function Webview({ body, url, contentType }: Props) {
}, [url, body, contentType]);
return (
<div className="px-2 pb-2">
<div className="h-full pb-3">
<iframe
title="Response preview"
srcDoc={contentForIframe}
sandbox="allow-scripts allow-same-origin"
className="h-full w-full rounded-md border border-gray-100/20"
className="h-full w-full rounded border border-highlightSecondary"
/>
</div>
);