Skip to content

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

fix: layout jump on item selection

thecodrr9411b841aeac
diff --git a/apps/web/src/components/list-item/index.js b/apps/web/src/components/list-item/index.js
index 3fe3f5a67..09dd7db17 100644
--- a/apps/web/src/components/list-item/index.js
+++ b/apps/web/src/components/list-item/index.js
@@ -103,15 +103,15 @@ function ListItem(props) {
borderLeft: "5px solid",
borderLeftColor: isFocused ? primary : "transparent",
transition: "box-shadow 200ms ease-in",
- borderTop: isMenuTarget ? `1px solid var(--${primary})` : "none",
- borderBottom: isMenuTarget ? `1px solid var(--${primary})` : "none",
+ outline: isMenuTarget ? `1px solid var(--${primary})` : "none",
+ // borderBottom: isMenuTarget ? `1px solid var(--${primary})` : "none",
":hover": {
backgroundColor: isSelected ? "shade" : "hover",
},
":focus,:focus-visible": {
- outline: "none",
- borderTop: `1px solid var(--${primary})`,
- borderBottom: `1px solid var(--${primary})`,
+ // outline: "none",
+ outline: `1px solid var(--${primary})`,
+ // outline: `1px solid var(--${primary})`,
},
overflow: "hidden",
maxWidth: "100%",