From 7cb5ef2266f0277a2a8c3396ad386ae9238962a5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 4 Dec 2024 22:57:03 +0200 Subject: [PATCH] feat(style): pass whether electron to CSS --- src/routes/index.ts | 1 + src/views/desktop.ejs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/index.ts b/src/routes/index.ts index e6213c650..17a5adad3 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -34,6 +34,7 @@ function index(req: Request, res: Response) { headingStyle: options.headingStyle, layoutOrientation: options.layoutOrientation, platform: process.platform, + isElectron: utils.isElectron(), mainFontSize: parseInt(options.mainFontSize), treeFontSize: parseInt(options.treeFontSize), detailFontSize: parseInt(options.detailFontSize), diff --git a/src/views/desktop.ejs b/src/views/desktop.ejs index 7c1d3fbbe..d2db1f175 100644 --- a/src/views/desktop.ejs +++ b/src/views/desktop.ejs @@ -6,7 +6,7 @@ TriliumNext Notes - +