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

Fix: page jump while scrolling #6063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

prakhart4
Copy link

Closes #5995

Why was the size changing?
Due to the vertical alignment of the code editor and the output on the desktop at a certain screen width, the height of the sandpack is determined by the output iframe

Solution
By reducing the min-width values of both the editor and the iframe to accommodate desktop widths, they can now be arranged horizontally when viewed on a desktop screen.

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 103.16 KB (🟡 +6 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

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

Successfully merging this pull request may close these issues.

Page is jumping when scrolling
2 participants