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

Scrollbar artifact appearing on SandpackPreview #1177

Open
1 of 2 tasks
neocho opened this issue Aug 16, 2024 · 1 comment
Open
1 of 2 tasks

Scrollbar artifact appearing on SandpackPreview #1177

neocho opened this issue Aug 16, 2024 · 1 comment

Comments

@neocho
Copy link

neocho commented Aug 16, 2024

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

Description of the problem

Hi, I've been trying to get rid of what i think is a scrollbar but haven't been able to do so. This is how i setup the SandpackPreview component below. Any suggestions/tips to fix this?

"use client"

import {
    SandpackCodeEditor,
    SandpackPreview,
    SandpackLayout,
    SandpackConsole,
} from "@codesandbox/sandpack-react";

export const CustomSandpackEditor = ({}) => {
    return (
        <SandpackLayout style={{
            display: "flex",
            flexDirection: "row",
            height: "75vh",
            width: "80vw",
            marginTop: "12px",
            gap: "5px",
        }}>
            <SandpackPreview
                style={{ height: "100%", width: "100%" }}
                showRestartButton={true}
                showRefreshButton={true}
                showOpenInCodeSandbox={false}
                showSandpackErrorOverlay={true}
            />
        </SandpackLayout>
    )
}

Screenshot 2024-08-16 at 6 19 10 PM

@neocho
Copy link
Author

neocho commented Aug 31, 2024

Still couldn't figure this one out. Not sure if this is only happening on my machine, but found the same problem on the docs. Might be an issue with the template?

Screenshot 2024-08-31 at 7 43 40 AM

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

No branches or pull requests

1 participant