mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +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,
|
opacity: isDisabled ? 0.7 : 1,
|
||||||
|
|
||||||
borderBottom: isFocused ? "5px solid" : "none",
|
|
||||||
pb: isFocused ? "2px" : "7px",
|
|
||||||
borderBottomColor: isFocused ? accent : "transparent",
|
|
||||||
|
|
||||||
backgroundColor: selected ? "background-selected" : background,
|
backgroundColor: selected ? "background-selected" : background,
|
||||||
|
|
||||||
":hover": {
|
":hover": {
|
||||||
|
|||||||
@@ -145,6 +145,11 @@ function Note(props: NoteProps) {
|
|||||||
heading: color ? primary : "heading",
|
heading: color ? primary : "heading",
|
||||||
background: "background"
|
background: "background"
|
||||||
}}
|
}}
|
||||||
|
sx={{
|
||||||
|
borderLeft: isOpened ? "4px solid" : "none",
|
||||||
|
pl: isOpened ? "3px" : "7px",
|
||||||
|
borderLeftColor: isOpened ? primary : "transparent"
|
||||||
|
}}
|
||||||
context={{ color, locked }}
|
context={{ color, locked }}
|
||||||
menuItems={noteMenuItems}
|
menuItems={noteMenuItems}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user