mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
Prettier template editor
This commit is contained in:
@@ -459,9 +459,14 @@
|
||||
...editorConfig(code, lang, automaticLayout, fixedOverflowWidgets, false),
|
||||
model,
|
||||
// overflowWidgetsDomNode: widgets,
|
||||
// lineNumbers: 'on',
|
||||
lineDecorationsWidth: 6,
|
||||
lineNumbersMinChars: 2,
|
||||
lineNumbers: (ln) => '<span></span>',
|
||||
lineNumbersMinChars: 0,
|
||||
lineDecorationsWidth: 0,
|
||||
scrollbar: {
|
||||
verticalScrollbarSize: 0
|
||||
},
|
||||
renderLineHighlight: 'none',
|
||||
padding: { top: 6, bottom: 6 },
|
||||
fontSize,
|
||||
suggestOnTriggerCharacters: true
|
||||
})
|
||||
@@ -667,14 +672,14 @@
|
||||
{code}
|
||||
lineNumbersWidth={23}
|
||||
lineNumbersOffset={-8}
|
||||
class="border template nonmain-editor rounded min-h-4 mx-0.5 overflow-clip"
|
||||
class="border template nonmain-editor rounded-lg min-h-4 mx-0.5 overflow-clip"
|
||||
/>
|
||||
{/if}
|
||||
<div
|
||||
bind:this={divEl}
|
||||
style="height: 18px;"
|
||||
class="{$$props.class ??
|
||||
''} border template nonmain-editor rounded min-h-4 mx-0.5 overflow-clip {!editor
|
||||
''} border template nonmain-editor rounded-lg min-h-4 mx-0.5 overflow-clip {!editor
|
||||
? 'hidden'
|
||||
: ''}"
|
||||
bind:clientWidth={width}
|
||||
|
||||
Reference in New Issue
Block a user