mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-02 10:55:53 +08:00
feat(style): pass whether electron to CSS
This commit is contained in:
parent
e9cf310657
commit
7cb5ef2266
@ -34,6 +34,7 @@ function index(req: Request, res: Response) {
|
|||||||
headingStyle: options.headingStyle,
|
headingStyle: options.headingStyle,
|
||||||
layoutOrientation: options.layoutOrientation,
|
layoutOrientation: options.layoutOrientation,
|
||||||
platform: process.platform,
|
platform: process.platform,
|
||||||
|
isElectron: utils.isElectron(),
|
||||||
mainFontSize: parseInt(options.mainFontSize),
|
mainFontSize: parseInt(options.mainFontSize),
|
||||||
treeFontSize: parseInt(options.treeFontSize),
|
treeFontSize: parseInt(options.treeFontSize),
|
||||||
detailFontSize: parseInt(options.detailFontSize),
|
detailFontSize: parseInt(options.detailFontSize),
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
|
<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest">
|
||||||
<title>TriliumNext Notes</title>
|
<title>TriliumNext Notes</title>
|
||||||
</head>
|
</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>
|
<noscript><%= t("javascript-required") %></noscript>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -84,5 +84,5 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="<%= assetPath %>/node_modules/boxicons/css/boxicons.min.css">
|
<link rel="stylesheet" type="text/css" href="<%= assetPath %>/node_modules/boxicons/css/boxicons.min.css">
|
||||||
|
|
||||||
</body>
|
</>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user