Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Open
lio-p opened this issue Jan 23, 2023 · 1 comment
Open

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

lio-p opened this issue Jan 23, 2023 · 1 comment

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

@1kevinson
Copy link

1kevinson commented Jan 7, 2025

This is not the navigation, it's the split column.
The navigation bar is actually hidden in your screenshot.

This is what it looks like when the navigation bar is not hidden

2025-01-07 17_17_49-Embedding – CodeSandbox – Brave

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

No branches or pull requests

3 participants