You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Monaco editor doesn't support adding any sort of padding to the editor, but there are several strategies which can be used to emulate padding.
With just CSS padding, editor features are also shifted down. Note the scrollbar and scroll-decoration shadow are both 4px below the top of the "Channel" editor title bar:
We're using the view zone strategy to add a single line of margin to the top of each editor instance. Unfortunately, this requires us to use exactly 18px of padding. If/when Monaco editor supports customizing the padding around the editor, we should replace the current view zones hack (and maybe choose between 6px and 12px for padding).
The text was updated successfully, but these errors were encountered:
Currently, Monaco editor doesn't support adding any sort of padding to the editor, but there are several strategies which can be used to emulate padding.
With just CSS padding, editor features are also shifted down. Note the scrollbar and
scroll-decoration
shadow are both4px
below the top of the "Channel" editor title bar:We're using the view zone strategy to add a single line of margin to the top of each editor instance. Unfortunately, this requires us to use exactly
18px
of padding. If/when Monaco editor supports customizing the padding around the editor, we should replace the current view zones hack (and maybe choose between6px
and12px
for padding).The text was updated successfully, but these errors were encountered: