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 embed sandbox does not hide navigation above 1280px width #8685

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

Conversation

Setland34
Copy link

@Setland34 Setland34 commented Jan 12, 2025

Fixes #7347

Add functionality to hide the split pane in embed mode when hideNavigation is set.

  • Add a new state variable hideSplitPane to the State type definition in packages/app/src/embed/components/App/index.js.
  • Initialize hideSplitPane state variable in the constructor based on hideNavigation.
  • Update the render method to conditionally render the SplitView component based on hideSplitPane.
  • Add a new prop hideSplitPane to the SplitView component in packages/app/src/embed/components/SplitPane/index.js.
  • Update the SplitView component to conditionally render the resizer based on hideSplitPane.

For more details, open the Copilot Workspace session.

Fixes codesandbox#7347

Add functionality to hide the split pane in embed mode when `hideNavigation` is set.

* Add a new state variable `hideSplitPane` to the `State` type definition in `packages/app/src/embed/components/App/index.js`.
* Initialize `hideSplitPane` state variable in the constructor based on `hideNavigation`.
* Update the `render` method to conditionally render the `SplitView` component based on `hideSplitPane`.
* Add a new prop `hideSplitPane` to the `SplitView` component in `packages/app/src/embed/components/SplitPane/index.js`.
* Update the `SplitView` component to conditionally render the resizer based on `hideSplitPane`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/codesandbox/codesandbox-client/issues/7347?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

codesandbox bot commented Jan 12, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

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

Successfully merging this pull request may close these issues.

Embed sandbox does not hide navigation above 1280px width
1 participant