#99877codemirror editor in backend modals needs proper dimensions
Description
Problem
The codemirror editor within a backend modal has no proper dimensions. An backend user has two scrollbars. one of modal-body and one of the code-mirror.
In such scenario – especially on OS where scrollbars are “hidden” – an user can not consume the whole editor content (e.g. TypoScript, TSconfig, …).
How to test?
Test within e.g. TypoScript module
- Open TypoScript
- Switch to Active TypoScript submodule
- Click on any “Show Code” button which shows more code lines then the height of the modal (more than 1000px to get a good view on the problem)
Suggested solution
Size the codemirror editor to the height of the modal body like shown in the following screenshot
clipboard-202302081046-ketrt.png
clipboard-202302081047-qjb71.png
I’m not sure if this small CSS adjustment is the correct solution.