feat: add word wrap option #823

This commit is contained in:
Nybkox
2024-11-21 11:17:51 +01:00
parent 4b2f762200
commit 77414ba934
4 changed files with 21 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
import SqlEditor from '../query/SqlEditor.svelte';
import {
currentEditorFontSize,
currentEditorWrapEnabled,
currentEditorTheme,
currentEditorKeybindigMode,
extensions,
@@ -162,6 +163,14 @@ ORDER BY
/>
</FormFieldTemplateLarge>
</div>
<div class="col-3">
<FormFieldTemplateLarge label="Enable word wrap" type="combo">
<CheckboxField
checked={$currentEditorWrapEnabled}
on:change={e => ($currentEditorWrapEnabled = e.target.checked)}
/>
</FormFieldTemplateLarge>
</div>
</div>
</svelte:fragment>
<svelte:fragment slot="2">