Skip to content

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

fix: editor toolbar render flash on first launch

thecodrra602640dc7b6
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index a26b03192..eef36cc7f 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -65,6 +65,7 @@
width: 120px !important;
}
.ql-toolbar.ql-snow {
+ opacity: 0;
width: 100%;
border: none !important;
border-bottom: 1px solid var(--border) !important;
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index d71d0f95e..cec968318 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -181,6 +181,7 @@ function Editor(props) {
"#toolbarContainer"
);
if (toolbar && toolbarContainer) {
+ toolbar.style.opacity = 1;
toolbarContainer.appendChild(toolbar);
}
}}