File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ import { Props } from "./Visualization";
22import Markdown from "react-markdown" ;
33
44export 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}
You can’t perform that action at this time.
0 commit comments