From 06a5298efa1dec1c33aa5f6937c49cb65d931451 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Dec 2025 22:27:56 +0200 Subject: [PATCH] feat(note_actions): hide options in attachments --- apps/client/src/widgets/ribbon/NoteActions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index 7334aefa7..85ce63013 100644 --- a/apps/client/src/widgets/ribbon/NoteActions.tsx +++ b/apps/client/src/widgets/ribbon/NoteActions.tsx @@ -60,6 +60,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not const isHelpPage = note.noteId.startsWith("_help"); const [syncServerHost] = useTriliumOption("syncServerHost"); const { isReadOnly, enableEditing } = useIsNoteReadOnly(note, noteContext); + const isNormalViewMode = noteContext?.viewScope?.viewMode === "default"; return ( } - {isNewLayout && !isHelpPage && <> + {isNewLayout && isNormalViewMode && !isHelpPage && <> }