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

This commit is contained in:
Abdullah Atta
2025-04-17 13:28:49 +05:00
parent 0396264842
commit ae795a837d
2 changed files with 5 additions and 4 deletions

View File

@@ -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": {

View File

@@ -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={() =>