Monaco code editor has props of height which needs to be mostly in vertical height like(vh) for example
<Editor
height="30vh"
// and rest props
/>
just pass the height props. i think this will helps. make sure you you install npm install @monaco-editor/react