Open
Description
It's probably about documentation, not a real bug
I'm working on programming course for kids and sometimes I need empty monaco editor.
Describe the bug
When there is an empty monaco-run editor it has fixed height, so as soon as I start writing code, the code block only becomes scrollable, but height does not increase.
Minimal reproduction
Steps to reproduce the behavior:
- Create any empty monaco editor runnable
- Start typing code inside
- Height stays fixed
https://stackblitz.com/edit/github-lcavt9dr?file=slides.md
Environment
- Slidev version: 51.5.0
- Browser: Chrome Version 134.0.6998.166 (Official Build) (arm64)
- OS: MacOS 15.4
** Fix
In slide height must be set to 'auto'.
js {monaco-run} {autorun: false, height: 'auto'}
This is not documented anywhere. I'm happy to do so.
Or maybe change is possible here
slidev/packages/client/builtin/Monaco.vue
Line 48 in 308f74d
Change from 'initial' to 'auto'