Skip to content

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

web: move the opened note indicator to the left of note item

Abdullah Attaae795a837d68
diff --git a/apps/web/src/components/list-item/index.tsx b/apps/web/src/components/list-item/index.tsx
index 7542f4e9c..3c365969a 100644
--- a/apps/web/src/components/list-item/index.tsx
+++ b/apps/web/src/components/list-item/index.tsx
@@ -156,10 +156,6 @@ function ListItem<TItem extends Item, TContext>(
opacity: isDisabled ? 0.7 : 1,
- borderBottom: isFocused ? "5px solid" : "none",
- pb: isFocused ? "2px" : "7px",
- borderBottomColor: isFocused ? accent : "transparent",
-
backgroundColor: selected ? "background-selected" : background,
":hover": {
diff --git a/apps/web/src/components/note/index.tsx b/apps/web/src/components/note/index.tsx
index 285fb455f..f443d6ba0 100644
--- a/apps/web/src/components/note/index.tsx
+++ b/apps/web/src/components/note/index.tsx
@@ -145,6 +145,11 @@ function Note(props: NoteProps) {
heading: color ? primary : "heading",
background: "background"
}}
+ sx={{
+ borderLeft: isOpened ? "4px solid" : "none",
+ pl: isOpened ? "3px" : "7px",
+ borderLeftColor: isOpened ? primary : "transparent"
+ }}
context={{ color, locked }}
menuItems={noteMenuItems}
onClick={() =>