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
web: improve item ui when it is focused
Abdullah Attaa064254bcff7
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.jsindex f7a0ff5d0..65f182ce1 100644--- a/apps/web/src/components/list-item/index.js+++ b/apps/web/src/components/list-item/index.js@@ -82,7 +82,6 @@ function ListItem(props) {id={`id_${props.item.id}`}className={isSelected ? "selected" : ""}ref={listItemRef}- bg={isSelected ? "shade" : background}onContextMenu={(e) => {e.preventDefault();e.stopPropagation();@@ -114,33 +113,47 @@ function ListItem(props) {...props.menu?.extraData});}}- pr={2}- py={isCompact ? 1 : 2}pl={1}+ pr={2}+ py={1}+ mb={isCompact ? 0 : 1}tabIndex={-1}sx={{- opacity: isDisabled ? 0.7 : 1,height: "inherit",cursor: "pointer",position: "relative",+ overflow: "hidden",+ maxWidth: "100%",++ flexDirection: isCompact ? "row" : "column",+ justifyContent: isCompact ? "space-between" : "center",+ alignItems: isCompact ? "center" : undefined,++ opacity: isDisabled ? 0.7 : 1,+borderLeft: "5px solid",borderLeftColor: isFocused ? primary : "transparent",- transition: "box-shadow 200ms ease-in",- outline: isMenuTarget ? `1px solid var(--${primary})` : "none",- // borderBottom: isMenuTarget ? `1px solid var(--${primary})` : "none",+ ml: "2px",+ mr: "1px",++ backgroundColor: isSelected+ ? "shade"+ : isMenuTarget+ ? "hover"+ : background,+":hover": {- backgroundColor: isSelected ? "shade" : "hover"+ backgroundColor: isSelected ? "textSelection" : "hover"},- ":focus,:focus-visible": {- // outline: "none",- outline: `1px solid var(--${primary})`- // outline: `1px solid var(--${primary})`,+ ":focus": {+ backgroundColor: isSelected ? "textSelection" : "hover"},- overflow: "hidden",- maxWidth: "100%",- flexDirection: isCompact ? "row" : "column",- justifyContent: isCompact ? "space-between" : "center",- alignItems: isCompact ? "center" : undefined+ ":focus-visible": {+ outline: `1px solid var(--${+ primary === "primary" ? "dimPrimary" : primary+ })`,+ backgroundColor: isSelected ? "textSelection" : background+ }}}onKeyPress={(e) => {if (e.key !== "Enter") {