Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(style): pass whether electron to CSS
Elian Doran7cb5ef2266f0
diff --git a/src/routes/index.ts b/src/routes/index.tsindex e6213c6500..17a5adad3a 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.ejsindex 7c1d3fbbe6..d2db1f175e 100644--- a/src/views/desktop.ejs+++ b/src/views/desktop.ejs@@ -6,7 +6,7 @@<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"><title>TriliumNext Notes</title></head>-<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %>">+<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %>"><noscript><%= t("javascript-required") %></noscript><script>@@ -84,5 +84,5 @@<link rel="stylesheet" type="text/css" href="<%= assetPath %>/node_modules/boxicons/css/boxicons.min.css">-</body>+</></html>