mirror of
https://github.com/zadam/trilium.git
synced 2025-12-16 21:29:56 +01:00
fix(layout): note actions button duplicated in old layout
This commit is contained in:
@@ -32,11 +32,15 @@ export default function NoteActions() {
|
|||||||
const { note, ntxId, noteContext } = useNoteContext();
|
const { note, ntxId, noteContext } = useNoteContext();
|
||||||
return (
|
return (
|
||||||
<div className="ribbon-button-container" style={{ contain: "none" }}>
|
<div className="ribbon-button-container" style={{ contain: "none" }}>
|
||||||
{note && ntxId && <NoteActionsCustom note={note} ntxId={ntxId} />}
|
{isNewLayout && (
|
||||||
<MovePaneButton direction="left" />
|
<>
|
||||||
<MovePaneButton direction="right" />
|
{note && ntxId && <NoteActionsCustom note={note} ntxId={ntxId} />}
|
||||||
<ClosePaneButton />
|
<MovePaneButton direction="left" />
|
||||||
<CreatePaneButton />
|
<MovePaneButton direction="right" />
|
||||||
|
<ClosePaneButton />
|
||||||
|
<CreatePaneButton />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
{note && !isNewLayout && <RevisionsButton note={note} />}
|
{note && !isNewLayout && <RevisionsButton note={note} />}
|
||||||
{note && note.type !== "launcher" && <NoteContextMenu note={note as FNote} noteContext={noteContext} />}
|
{note && note.type !== "launcher" && <NoteContextMenu note={note as FNote} noteContext={noteContext} />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user