A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: show list collapse toggle on hover in task list (fixes #842)
Abdullah Atta2a5005135c02
diff --git a/packages/editor/src/extensions/task-item/component.tsx b/packages/editor/src/extensions/task-item/component.tsxindex 11129cfb3..88060cd29 100644--- a/packages/editor/src/extensions/task-item/component.tsx+++ b/packages/editor/src/extensions/task-item/component.tsx@@ -150,6 +150,13 @@ export function TaskItemComponent(textDecorationLine: checked ? "line-through" : "none",opacity: checked ? 0.8 : 1},+ // FIXME: this is quite fragile and will break if the structure+ // changes. We should probably find a better & more robust+ // solution for this.+ "> .taskitem-content-wrapper > p:hover ~ div > div.task-list-tools .toggleSublist":+ {+ opacity: 1+ },flex: 1}}/>diff --git a/packages/editor/src/extensions/task-list/component.tsx b/packages/editor/src/extensions/task-list/component.tsxindex 47b9129b8..4fb4286c4 100644--- a/packages/editor/src/extensions/task-list/component.tsx+++ b/packages/editor/src/extensions/task-list/component.tsx@@ -80,9 +80,9 @@ export function TaskListComponent(<><Flexsx={{- flexDirection: "column",- ":hover > div > .toggleSublist": { opacity: 1 }+ flexDirection: "column"}}+ className="task-list-tools">{isNested ? (<Flex@@ -108,6 +108,7 @@ export function TaskListComponent(alignSelf: "start",mr: 2,cursor: "pointer",+ ":hover": { opacity: 1 },".icon:hover path": {fill: "var(--checked) !important"}