feat(style): pass whether electron to CSS

This commit is contained in:
Elian Doran 2024-12-04 22:57:03 +02:00
parent e9cf310657
commit 7cb5ef2266
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -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),

View File

@ -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>