A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
ui: multiselect menu item and item selector
thecodrrf8d2c505b778
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex c682d4dc2..f85e0daaa 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -22,15 +22,26 @@ const ListItem = props => {const [parentRef, closeContextMenu] = useContextMenu(`contextMenu${props.index}`);+ const menuItems = [+ { title: isSelected ? "Unselect" : "Select", onClick: () => {} },+ ...props.menuItems+ ];return (- <Flex ref={parentRef}>+ <Flex+ ref={parentRef}+ bg={props.pinned || isSelected ? "shade" : "background"}+ alignItems="center"+ >+ <Box width={24} sx={{ marginLeft: 3, marginRight: 1 }}>+ <Icon.Circle />+ </Box><Flexflex="1 1 auto"alignItems="center"justifyContent="space-between"- bg={props.pinned || isSelected ? "shade" : "background"}px={2}sx={{+ width: "full",position: "relative",marginTop: props.pinned ? 4 : 0,paddingTop: props.pinned ? 0 : 2,@@ -132,6 +143,7 @@ const ListItem = props => {<DropdownContent style={{ zIndex: 2, marginLeft: -130 }}><ActionsMenu{...props}+ menuItems={menuItems}closeMenu={() => props.dropdownRefs[props.index].hide()}/></DropdownContent>@@ -141,6 +153,7 @@ const ListItem = props => {{props.menuItems && props.dropdownRefs && (<ActionsMenu{...props}+ menuItems={menuItems}id={`contextMenu${props.index}`}style={{position: "absolute",diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 5269bdf53..eb10a93c6 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -6825,7 +6825,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:"notes-core@https://github.com/thecodrr/notes-core.git":version "1.2.0"- resolved "https://github.com/thecodrr/notes-core.git#0ab48b67c1e2efc73e4be29a39d1c6d57e629e54"+ resolved "https://github.com/thecodrr/notes-core.git#8b2ec867e62b88bc3316202ecd3122e59c814ba2"dependencies:fast-sort "^2.0.1"fuzzysearch "^1.0.3"