mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 03:01:53 +10:00
fix(mobile): check for responsiveness, add scrollarea support
This commit is contained in:
@ -38,6 +38,7 @@ export const PublicResumePage = () => {
|
||||
if (event.origin !== window.location.origin) return;
|
||||
|
||||
if (event.data.type === "PAGE_LOADED") {
|
||||
frameRef.current.width = event.data.payload.width;
|
||||
frameRef.current.height = event.data.payload.height;
|
||||
frameRef.current.contentWindow.removeEventListener("message", handleMessage);
|
||||
}
|
||||
@ -65,8 +66,9 @@ export const PublicResumePage = () => {
|
||||
<iframe
|
||||
title={title}
|
||||
ref={frameRef}
|
||||
scrolling="no"
|
||||
src="/artboard/preview"
|
||||
style={{ width: `${pageSizeMap[format].width}mm` }}
|
||||
style={{ width: `${pageSizeMap[format].width}mm`, overflow: "hidden" }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user