Skip to content

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

fix: onfocus editor width/placement issue

alihamuh295004330135
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index 293bb09e2..eddec5ba9 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -81,7 +81,10 @@ function App() {
>
{routeResult}
</Animated.Flex>
- <Flex width={[show ? 0 : "100%", 0, "100%"]}>
+ <Flex
+ width={[show ? 0 : "100%", "100%", "100%"]}
+ flexDirection="column"
+ >
<Editor />
</Flex>
</Flex>
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 7760c3fec..a3e4f218b 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -60,7 +60,7 @@ function Editor() {
animate={{
width: isFocusMode ? "55%" : "100%",
}}
- transition={{ duration: 0.3, ease: "easeIn" }}
+ transition={{ duration: 0.5, ease: "easeIn" }}
sx={{
position: "relative",
alignSelf: isFocusMode ? "center" : "stretch",