Skip to content

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

fix: make editor scrollable again

thecodrr48e818a74bce
diff --git a/apps/web/src/components/editor/editor.css b/apps/web/src/components/editor/editor.css
index 7dc269e94..14d5a8b10 100644
--- a/apps/web/src/components/editor/editor.css
+++ b/apps/web/src/components/editor/editor.css
@@ -1,14 +1,11 @@
-.quill {
- overflow-y: auto;
- flex: 1 1 auto;
+.ql-editor {
+ height: auto !important;
+ overflow-y: hidden !important;
}
.ql-container.ql-snow {
border: none !important;
-}
-
-.ql-container.ql-snow {
- overflow-y: hidden;
+ overflow-y: auto !important;
}
/*Quill Toolbar*/
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index fb84d440b..44a253d94 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -41,6 +41,7 @@ function Editor() {
sx={{
position: "relative",
alignSelf: isFocusMode ? "center" : "stretch",
+ overflow: "hidden",
}}
flex="1 1 auto"
>
diff --git a/apps/web/src/navigation/index.js b/apps/web/src/navigation/index.js
index 1af49ddf5..d5c44150f 100644
--- a/apps/web/src/navigation/index.js
+++ b/apps/web/src/navigation/index.js
@@ -112,6 +112,7 @@ class Navigator {
ReactDOM.render(
<AnimatePresence exitBeforeEnter={true}>
<Animated.Flex
+ sx={{ overflow: "hidden" }}
key={route.key}
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}