Prettier template editor

This commit is contained in:
Diego Imbert
2025-09-10 17:06:57 +02:00
parent 52109ab7e1
commit ff2a952656
@@ -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}