Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(collections): move help button to the title area
Elian Doranfc756ba46eb0
diff --git a/apps/client/src/widgets/note_bars/CollectionProperties.tsx b/apps/client/src/widgets/note_bars/CollectionProperties.tsxindex 6b3d781db6..cd1cb73d4b 100644--- a/apps/client/src/widgets/note_bars/CollectionProperties.tsx+++ b/apps/client/src/widgets/note_bars/CollectionProperties.tsx@@ -47,7 +47,6 @@ export default function CollectionProperties({ note, centerChildren, rightChildr</div><div className="right-container">{rightChildren}- <HelpButton note={note} /></div></div>);@@ -234,15 +233,3 @@ function CheckBoxPropertyView({ note, property }: { note: FNote, property: Check/>);}--function HelpButton({ note }: { note: FNote }) {- const helpUrl = getHelpUrlForNote(note);-- return (helpUrl && (- <ActionButton- icon="bx bx-help-circle"- onClick={(() => openInAppHelpFromUrl(helpUrl))}- text={t("help-button.title")}- />- ));-}diff --git a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsxindex 36b4b85431..c2925c849b 100644--- a/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx+++ b/apps/client/src/widgets/ribbon/NoteActionsCustom.tsx@@ -234,9 +234,9 @@ function OpenTriliumApiDocsButton({ noteMime }: NoteActionsCustomInnerProps) {/>;}-function InAppHelpButton({ note, noteType }: NoteActionsCustomInnerProps) {+function InAppHelpButton({ note }: NoteActionsCustomInnerProps) {const helpUrl = getHelpUrlForNote(note);- const isEnabled = !!helpUrl && (noteType !== "book");+ const isEnabled = !!helpUrl;return isEnabled && (<ActionButtondiff --git a/apps/client/src/widgets/ribbon/style.css b/apps/client/src/widgets/ribbon/style.cssindex cd99cd1d55..71c865ebad 100644--- a/apps/client/src/widgets/ribbon/style.css+++ b/apps/client/src/widgets/ribbon/style.css@@ -459,7 +459,7 @@ body.experimental-feature-new-layout {gap: var(--button-gap);&> button:last-of-type {- margin-right: 1em;+ margin-right: 0.5em;}}}