Skip to content

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

fix: #41

thecodrr87db0bb137a5
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 7104f568e..5b9f42fe5 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -114,33 +114,36 @@ const ListItem = props => {
</Text>
</Box>
{props.menuItems && props.dropdownRefs && (
- <Dropdown
- style={{ zIndex: 1, marginRight: -4 }}
- ref={ref => (props.dropdownRefs[props.index] = ref)}
- >
- <DropdownTrigger onClick={() => closeContextMenu()}>
- <Text sx={{ ":active, :hover": { color: "primary" } }}>
- <Icon.MoreVertical
- size={24}
- strokeWidth={1.5}
- style={{ marginRight: -5 }}
- />
- </Text>
- </DropdownTrigger>
- <DropdownContent style={{ zIndex: 2, marginLeft: -110 }}>
- <ActionsMenu {...props} />
- </DropdownContent>
- </Dropdown>
+ <>
+ {" "}
+ <Dropdown
+ style={{ zIndex: 1, marginRight: -4 }}
+ ref={ref => (props.dropdownRefs[props.index] = ref)}
+ >
+ <DropdownTrigger onClick={() => closeContextMenu()}>
+ <Text sx={{ ":active, :hover": { color: "primary" } }}>
+ <Icon.MoreVertical
+ size={24}
+ strokeWidth={1.5}
+ style={{ marginRight: -5 }}
+ />
+ </Text>
+ </DropdownTrigger>
+ <DropdownContent style={{ zIndex: 2, marginLeft: -110 }}>
+ <ActionsMenu {...props} />
+ </DropdownContent>
+ </Dropdown>
+ <ActionsMenu
+ {...props}
+ id={`contextMenu${props.index}`}
+ style={{
+ position: "absolute",
+ display: "none",
+ zIndex: 999
+ }}
+ />
+ </>
)}
- <ActionsMenu
- {...props}
- id={`contextMenu${props.index}`}
- style={{
- position: "absolute",
- display: "none",
- zIndex: 999
- }}
- />
</Flex>
);
};