Skip to content

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

feat: hide editor toolbar in readonly mode

thecodrr7f4faaad8952
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index 76bea9b45..640e95cf3 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -202,9 +202,10 @@ function Editor({ noteId, nonce }) {
className="editorScroll"
viewStyle={{ display: "flex", flexDirection: "column" }}
>
- <Flex
+ <Box
id="editorToolbar"
sx={{
+ display: isReadonly ? "none" : "flex",
bg: "background",
position: "sticky",
top: 0,