mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 01:40:13 -04:00
4ec8e0d289
Fix the Monaco error from showing up.
11 lines
255 B
TypeScript
11 lines
255 B
TypeScript
export const alignEditor = (editor: any) => {
|
|
// Add margin above first line
|
|
editor.changeViewZones((accessor: any) => {
|
|
accessor.addZone({
|
|
afterLineNumber: 0,
|
|
heightInPx: 4,
|
|
domNode: document.createElement('div'),
|
|
})
|
|
})
|
|
}
|