mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 14:39:34 +01:00
web: move the opened note indicator to the left of note item
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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={() =>
|
||||
|
||||
Reference in New Issue
Block a user