@@ -18,12 +18,7 @@ const HtmlIframe = ({ htmlString }) => {
1818 iframeDocument . close ( ) ;
1919 } , [ htmlString ] ) ;
2020
21- return (
22- < iframe
23- ref = { iframeRef }
24- className = "w-full h-full"
25- />
26- ) ;
21+ return < iframe ref = { iframeRef } className = "w-full h-full overflow-auto" /> ;
2722} ;
2823
2924export default function ResumeEditor ( {
@@ -69,17 +64,22 @@ export default function ResumeEditor({
6964 < div className = "h-full flex flex-col" >
7065 < div className = "shrink-0 p-4 flex justify-between items-center border-b bg-white" >
7166 < div className = "text-sm text-gray-600" >
72- The live preview uses the professional theme. You can choose different themes on your public resume page.
67+ The live preview uses the professional theme. You can choose different
68+ themes on your public resume page.
7369 </ div >
7470 < div className = "flex items-center gap-2" >
7571 < Button variant = "outline" size = "sm" asChild >
76- < Link href = { `/${ login } ` } target = "_blank" className = "flex items-center gap-1" >
72+ < Link
73+ href = { `/${ login } ` }
74+ target = "_blank"
75+ className = "flex items-center gap-1"
76+ >
7777 < ExternalLink className = "w-4 h-4" />
7878 View Resume
7979 </ Link >
8080 </ Button >
81- < Button
82- variant = "default"
81+ < Button
82+ variant = "default"
8383 size = "sm"
8484 disabled = { ! changed }
8585 onClick = { async ( ) => {
@@ -103,11 +103,11 @@ export default function ResumeEditor({
103103 options = { {
104104 minimap : { enabled : false } ,
105105 scrollBeyondLastLine : false ,
106- wordWrap : 'on'
106+ wordWrap : 'on' ,
107107 } }
108108 />
109109 </ div >
110- < div className = "w-1/2 border-l" >
110+ < div className = "w-1/2 border-l h-full overflow-auto " >
111111 < HtmlIframe htmlString = { content } />
112112 </ div >
113113 </ div >
0 commit comments