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

Embed sandbox does not hide navigation above 1280px width #7347

Open
lio-p opened this issue Jan 23, 2023 · 0 comments
Open

Embed sandbox does not hide navigation above 1280px width #7347

lio-p opened this issue Jan 23, 2023 · 0 comments

Comments

@lio-p
Copy link

lio-p commented Jan 23, 2023

Trying to embed a sandbox in a wide iframe lead to show the navigation panel even with hidenavigation: 1 set. This happens when setting the width to a size higher than 1280px.

Example that works as expected:
width:1280px

<iframe src="https://codesandbox.io/embed/new?fontsize=14&amp;hidenavigation=1&amp;hidedevtools=1&view=preview" style="width:1280px;height:1000px;border:0;border-radius:4px;overflow:hidden" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>

Screen Shot 2023-01-23 at 11 37 01 AM

Example that does not work as expected. The navigation column gets display.
width:1290px

<iframe src="https://codesandbox.io/embed/new?fontsize=14&amp;hidenavigation=1&amp;hidedevtools=1&view=preview" style="width:1290px;height:1000px;border:0;border-radius:4px;overflow:hidden" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>

Screen Shot 2023-01-23 at 11 36 44 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants