sandpack icon indicating copy to clipboard operation
sandpack copied to clipboard

Sandpack editor layout broken when using monaco

Open kelvin2200 opened this issue 7 months ago • 0 comments

Bug report

Packages affected

  • [ ] sandpack-client
  • [x] sandpack-react

Description of the problem

I'm new to sandpack, and I was trying the Monaco Editor integration by following the official example at https://sandpack.codesandbox.io/docs/guides/integrate-monaco-editor.

I got it working, but the editor's layout seems broken.

Image I have a lot of empty space to the left of the code, and the actual code has a lot of horizontal scroll.

I tried:

options.glyphMargin = false

but doesn't seem to fix it.

I apologize if this issue is not actually related to sandpack, and maybe it's related to Monaco... didn't know where to open it.

kelvin2200 avatar Mar 23 '25 12:03 kelvin2200