fix(mobile): check for responsiveness, add scrollarea support

This commit is contained in:
Amruth Pillai
2023-11-14 11:43:28 +01:00
parent 6303071410
commit 888b4db0bb
40 changed files with 491 additions and 397 deletions

View File

@ -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>