fix(layout): note actions button duplicated in old layout

This commit is contained in:
Elian Doran
2025-12-15 07:25:49 +02:00
parent 728fab1dda
commit 0960b585bd

View File

@@ -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>