Skip to content

Build your personal knowledge base with Trilium Notes

chore(dx/client): fix bootstrap CSS imports

Elian Doranf7a0dc00e894
diff --git a/apps/client/src/desktop.ts b/apps/client/src/desktop.ts
index 57ff4084eb..cf644cd3bf 100644
--- a/apps/client/src/desktop.ts
+++ b/apps/client/src/desktop.ts
@@ -10,7 +10,7 @@ import { t } from "./services/i18n.js";
import options from "./services/options.js";
import type ElectronRemote from "@electron/remote";
import type Electron from "electron";
-import "./stylesheets/bootstrap.scss";
+import "bootstrap/dist/css/bootstrap.min.css";
import "boxicons/css/boxicons.min.css";
import "autocomplete.js/index_jquery.js";
diff --git a/apps/client/src/login.ts b/apps/client/src/login.ts
index 2ba27be023..351ed4c1e5 100644
--- a/apps/client/src/login.ts
+++ b/apps/client/src/login.ts
@@ -1,4 +1,4 @@
-import "./stylesheets/bootstrap.scss";
+import "bootstrap/dist/css/bootstrap.min.css";
// @ts-ignore - module = undefined
// Required for correct loading of scripts in Electron
diff --git a/apps/client/src/mobile.ts b/apps/client/src/mobile.ts
index 805ffe2764..507b9ff5a1 100644
--- a/apps/client/src/mobile.ts
+++ b/apps/client/src/mobile.ts
@@ -1,7 +1,7 @@
import appContext from "./components/app_context.js";
import noteAutocompleteService from "./services/note_autocomplete.js";
import glob from "./services/glob.js";
-import "./stylesheets/bootstrap.scss";
+import "bootstrap/dist/css/bootstrap.min.css";
import "boxicons/css/boxicons.min.css";
import "autocomplete.js/index_jquery.js";
diff --git a/apps/client/src/set_password.ts b/apps/client/src/set_password.ts
index 67dfee1878..47e02f1d10 100644
--- a/apps/client/src/set_password.ts
+++ b/apps/client/src/set_password.ts
@@ -1,4 +1,4 @@
-import "./stylesheets/bootstrap.scss";
+import "bootstrap/dist/css/bootstrap.min.css";
import "./stylesheets/auth.css";
// @TriliumNextTODO: is this even needed anymore?
diff --git a/apps/client/src/setup.ts b/apps/client/src/setup.ts
index ba117aaf76..d5659645e9 100644
--- a/apps/client/src/setup.ts
+++ b/apps/client/src/setup.ts
@@ -1,7 +1,7 @@
import "jquery";
import utils from "./services/utils.js";
import ko from "knockout";
-import "./stylesheets/bootstrap.scss";
+import "bootstrap/dist/css/bootstrap.min.css";
// TriliumNextTODO: properly make use of below types
// type SetupModelSetupType = "new-document" | "sync-from-desktop" | "sync-from-server" | "";
diff --git a/apps/client/src/stylesheets/bootstrap.scss b/apps/client/src/stylesheets/bootstrap.scss
deleted file mode 100644
index b30b929fed..0000000000
--- a/apps/client/src/stylesheets/bootstrap.scss
+++ /dev/null
@@ -1,2 +0,0 @@
-/* Import all of Bootstrap's CSS */
-@use "bootstrap/scss/bootstrap";