codesandbox / codesandbox/codesandbox-client

Disable scroll behond last line in code sandbox embed

Open
#8,682 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

🌈 Feature

Hellooo, hope you're doing well :)

It can be good if when we uncheck the option: scroll beyond last line in VS Code settings of the codesandbox website
CleanShot 2025-01-07 at 20 30 53@2x

When we embed the code sandbox on a website, we will not see this (unnecessary) vertical scroll
CleanShot 2025-01-07 at 20 26 09@2x

By disabling the config in the editor of codesandbox website, it does the same in the embedded sandbox

Thanks in advance

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the embedded sandbox editor configuration and the setting corresponding to VS Code's scroll beyond last line. Compare the behavior with the provided screenshots; done when disabling that option removes the unnecessary vertical scroll in embedded sandboxes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.