mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
add configurable max content width with default value of 1200px.
This commit is contained in:
@@ -54,6 +54,7 @@ const ALLOWED_OPTIONS = new Set([
|
||||
'dailyBackupEnabled',
|
||||
'weeklyBackupEnabled',
|
||||
'monthlyBackupEnabled',
|
||||
'maxContentWidth'
|
||||
]);
|
||||
|
||||
function getOptions() {
|
||||
|
||||
@@ -35,7 +35,8 @@ function index(req, res) {
|
||||
isDev: env.isDev(),
|
||||
isMainWindow: !req.query.extra,
|
||||
extraHoistedNoteId: req.query.extraHoistedNoteId,
|
||||
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable()
|
||||
isProtectedSessionAvailable: protectedSessionService.isProtectedSessionAvailable(),
|
||||
maxContentWidth: parseInt(options.maxContentWidth)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user