Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix split pane sash styling

Abdullah Atta792a254513e1
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 8cb170012..c1469faf3 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -1,3 +1,10 @@
+:root {
+ --focus-border: var(--primary);
+ --separator-border: var(--border);
+ --sash-size: 10px;
+ --sash-hover-size: 4px;
+}
+
/* open-sans-regular - vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: "Open Sans";
@@ -178,13 +185,6 @@ textarea,
width: 1px !important;
}
-:root {
- --focus-border: var(--primary);
- --separator-border: var(--border);
- --sash-size: 10px;
- --sash-hover-size: 4px;
-}
-
.route#settings,
#mainRouteContainer {
overflow: hidden;
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 23b0b1c94..227a91ed9 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -25,7 +25,6 @@ import useTablet from "./hooks/use-tablet";
import { LazyMotion, domAnimation } from "framer-motion";
import useDatabase from "./hooks/use-database";
import { Allotment, LayoutPriority } from "allotment";
-import "allotment/dist/style.css";
import Config from "./utils/config";
import { useStore } from "./stores/app-store";
import { Toaster } from "react-hot-toast";
diff --git a/apps/web/src/hooks/use-database.ts b/apps/web/src/hooks/use-database.ts
index ab9dd4ccf..68e4494bd 100644
--- a/apps/web/src/hooks/use-database.ts
+++ b/apps/web/src/hooks/use-database.ts
@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { useEffect, useState } from "react";
import { initializeDatabase } from "../common/db";
+import "allotment/dist/style.css";
import "../utils/analytics";
import "../app.css";