Skip to content

Build your personal knowledge base with Trilium Notes

feat(server): add support for layout orientation option

Elian Dorane32f54a5c912
diff --git a/src/routes/api/options.ts b/src/routes/api/options.ts
index ecfe2dcbbb..9649aff2b9 100644
--- a/src/routes/api/options.ts
+++ b/src/routes/api/options.ts
@@ -66,7 +66,8 @@ const ALLOWED_OPTIONS = new Set([
'editedNotesOpenInRibbon',
'locale',
'firstDayOfWeek',
- 'textNoteEditorType'
+ 'textNoteEditorType',
+ 'layoutOrientation'
]);
function getOptions() {
diff --git a/src/services/options_init.ts b/src/services/options_init.ts
index 1dc7602d24..2d4efec540 100644
--- a/src/services/options_init.ts
+++ b/src/services/options_init.ts
@@ -134,7 +134,9 @@ const defaultOptions: DefaultOption[] = [
{ name: "codeBlockWordWrap", value: "false", isSynced: true },
// Text note configuration
- { name: "textNoteEditorType", value: "ckeditor-balloon", isSynced: true }
+ { name: "textNoteEditorType", value: "ckeditor-balloon", isSynced: true },
+
+ { name: "layoutOrientation", value: "vertical", isSynced: false }
];
/**