Skip to content

Commit 0759221

Browse files
feat: visualization fixes (#591)
1 parent f55c396 commit 0759221

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/artifacts/HtmlVisualization.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function HTMLVisualization({ content }: Props) {
1212
};
1313

1414
useEffect(() => {
15+
handleIframeLoad();
1516
window.addEventListener("resize", handleIframeLoad);
1617
return () => {
1718
window.removeEventListener("resize", handleIframeLoad);
@@ -21,11 +22,10 @@ export function HTMLVisualization({ content }: Props) {
2122
return (
2223
<div>
2324
<iframe
25+
className="w-full"
2426
title="Secure HTML Content"
2527
ref={iframeRef}
2628
srcDoc={content}
27-
width="100%"
28-
height="auto"
2929
onLoad={handleIframeLoad}
3030
/>
3131
</div>

src/components/artifacts/MarkdownVisualization.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { Props } from "./Visualization";
22
import Markdown from "react-markdown";
33

44
export default function MarkdownVisualization({ content }: Props) {
5-
return <Markdown className="prose max-w-none">{content}</Markdown>;
5+
return <Markdown className="!prose !max-w-none">{content}</Markdown>;
66
}

0 commit comments

Comments
 (0)