Skip to content

Build your personal knowledge base with Trilium Notes

feat(options_init): enable horizontal layout by default for new users

Elian Doran637d1df0f597
diff --git a/src/services/options_init.ts b/src/services/options_init.ts
index f4a98cf23e..7e7434d2d8 100644
--- a/src/services/options_init.ts
+++ b/src/services/options_init.ts
@@ -63,6 +63,7 @@ async function initNotSyncedOptions(initialized: boolean, opts: NotSyncedOpts =
optionService.createOption("lastSyncedPush", "0", false);
optionService.createOption("theme", "next", false);
+ optionService.createOption("layoutOrientation", "horizontal", false);
optionService.createOption("syncServerHost", opts.syncServerHost || "", false);
optionService.createOption("syncServerTimeout", "120000", false);
@@ -148,9 +149,11 @@ const defaultOptions: DefaultOption[] = [
{ name: "textNoteEditorType", value: "ckeditor-balloon", isSynced: true },
{ name: "textNoteEditorMultilineToolbar", value: "false", isSynced: true },
- // HTML import configuration
+ // Appearance
{ name: "layoutOrientation", value: "vertical", isSynced: false },
{ name: "backgroundEffects", value: "false", isSynced: false },
+
+ // HTML import configuration
{
name: "allowedHtmlTags",
value: JSON.stringify([