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

@@ -1,5 +1,15 @@
import $ from "jquery";
async function loadBootstrap() {
if (glob.isRtl) {
await import("bootstrap/dist/css/bootstrap.rtl.min.css");
} else {
await import("bootstrap/dist/css/bootstrap.min.css");
}
}
(window as any).$ = $;
(window as any).jQuery = $;
await loadBootstrap();
$("body").show();