Skip to content

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

fix: properly hide list when opening editor on mobile

thecodrr3cfee0616a95
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index ef59bae99..88461744c 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -100,6 +100,7 @@ function App() {
/>
<Flex variant="rowFill">
<Animated.Flex
+ className="listMenu"
variant="columnFill"
initial={{ width: "30%", opacity: 1, x: 0 }}
animate={{
@@ -107,10 +108,15 @@ function App() {
x: show ? 0 : "-30%",
opacity: show ? 1 : 0,
}}
- transition={{ duration: 0.3, ease: "easeOut" }}
+ onAnimationComplete={() => {
+ const element = document.querySelector(".listMenu");
+ if (!element) return;
+ element.style.display =
+ element.style.display === "none" ? "flex" : "none";
+ }}
+ transition={{ duration: 0.2, ease: "easeIn" }}
sx={{
borderRight: "1px solid",
- zIndex: show ? 0 : -1,
borderColor: "border",
}}
>