Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a mobile preview as well #6

Closed
oppianmatt opened this issue Nov 16, 2023 · 2 comments
Closed

add a mobile preview as well #6

oppianmatt opened this issue Nov 16, 2023 · 2 comments
Assignees

Comments

@oppianmatt
Copy link

what a wonderful project. I gave it a try and was amazed. I wanted a mobile view also so I changed Preview.tsx to return 2 iframes like so:

  return (
    <div className="flex">
      <iframe
        title="Preview"
        srcDoc={throttledCode}
        className="border-[4px] border-black rounded-[20px] shadow-lg 
        transform scale-[0.8] origin-top-left w-[400px] h-[832px]"
      ></iframe>
      <iframe
        title="Preview"
        srcDoc={throttledCode}
        className="border-[4px] border-black rounded-[20px] shadow-lg 
        transform scale-[0.8] origin-top-left w-[1280px] h-[832px]"
      ></iframe>
    </div>
  );
}

image

@abi
Copy link
Owner

abi commented Nov 16, 2023

Thanks for this! Will add this in.

@abi abi self-assigned this Nov 16, 2023
@abi abi mentioned this issue Nov 16, 2023
@abi
Copy link
Owner

abi commented Nov 16, 2023

Added now, thanks.

@abi abi closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants