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
fix(layout): note actions button duplicated in old layout
Elian Doran0960b585bd79
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsxindex 487379f0d1..ad2c281a48 100644--- a/apps/client/src/widgets/ribbon/NoteActions.tsx+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx@@ -32,11 +32,15 @@ export default function NoteActions() {const { note, ntxId, noteContext } = useNoteContext();return (<div className="ribbon-button-container" style={{ contain: "none" }}>- {note && ntxId && <NoteActionsCustom note={note} ntxId={ntxId} />}- <MovePaneButton direction="left" />- <MovePaneButton direction="right" />- <ClosePaneButton />- <CreatePaneButton />+ {isNewLayout && (+ <>+ {note && ntxId && <NoteActionsCustom note={note} ntxId={ntxId} />}+ <MovePaneButton direction="left" />+ <MovePaneButton direction="right" />+ <ClosePaneButton />+ <CreatePaneButton />+ </>+ )}{note && !isNewLayout && <RevisionsButton note={note} />}{note && note.type !== "launcher" && <NoteContextMenu note={note as FNote} noteContext={noteContext} />}</div>