Skip to content

Build your personal knowledge base with Trilium Notes

bootstrap: import bootstrap css in entry points

Panagiotis Papadopoulos837697c50392
diff --git a/src/public/app/desktop.ts b/src/public/app/desktop.ts
index b546bf68c1..0251324950 100644
--- a/src/public/app/desktop.ts
+++ b/src/public/app/desktop.ts
@@ -10,6 +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";
await appContext.earlyInit();
diff --git a/src/public/app/mobile.ts b/src/public/app/mobile.ts
index 6690566d4b..925b6bb159 100644
--- a/src/public/app/mobile.ts
+++ b/src/public/app/mobile.ts
@@ -1,6 +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";
glob.setupGlobs();
diff --git a/src/public/app/setup.ts b/src/public/app/setup.ts
index 1970c110ab..0d4647093e 100644
--- a/src/public/app/setup.ts
+++ b/src/public/app/setup.ts
@@ -1,5 +1,6 @@
import utils from "./services/utils.js";
import ko from "knockout";
+import "../stylesheets/bootstrap.scss";
// TriliumNextTODO: properly make use of below types
// type SetupModelSetupType = "new-document" | "sync-from-desktop" | "sync-from-server" | "";
diff --git a/src/public/app/share.ts b/src/public/app/share.ts
index 912154986b..62c9467e72 100644
--- a/src/public/app/share.ts
+++ b/src/public/app/share.ts
@@ -1,3 +1,5 @@
+import "../stylesheets/bootstrap.scss";
+
/**
* Fetch note with given ID from backend
*
diff --git a/src/public/stylesheets/bootstrap.scss b/src/public/stylesheets/bootstrap.scss
new file mode 100644
index 0000000000..ea4b3833ec
--- /dev/null
+++ b/src/public/stylesheets/bootstrap.scss
@@ -0,0 +1,2 @@
+// Import all of Bootstrap's CSS
+@import "bootstrap/scss/bootstrap";
\ No newline at end of file