fix(client/rtl): bootstrap not in RTL mode

This commit is contained in:
Elian Doran
2025-10-08 18:50:27 +03:00
parent d9bfa08672
commit 9d1e89268f
9 changed files with 16 additions and 8 deletions

View File

@@ -18,6 +18,7 @@
appPath: "<%= appPath %>",
platform: "<%= platform %>",
hasNativeTitleBar: <%= hasNativeTitleBar %>,
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>
TRILIUM_SAFE_MODE: <%= !!process.env.TRILIUM_SAFE_MODE %>,
isRtl: <%= isRtl %>
};
</script>

View File

@@ -14,6 +14,7 @@ import { generateToken as generateCsrfToken } from "./csrf_protection.js";
import type { Request, Response } from "express";
import type BNote from "../becca/entities/bnote.js";
import { LOCALES } from "@triliumnext/commons";
function index(req: Request, res: Response) {
const options = optionService.getOptionMap();
@@ -57,7 +58,8 @@ function index(req: Request, res: Response) {
maxContentWidth: Math.max(640, parseInt(options.maxContentWidth)),
triliumVersion: packageJson.version,
assetPath: assetPath,
appPath: appPath
appPath: appPath,
isRtl: LOCALES.find(l => l.id === options.locale)?.rtl
});
}