From c709b5d34c3ec8b3dcaeebe7dd6157d846cb2e80 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 5 Feb 2026 18:42:51 +0200 Subject: [PATCH] chore(mobile): relocate some note actions --- .../src/widgets/mobile_widgets/mobile_detail_menu.tsx | 4 +++- apps/client/src/widgets/ribbon/NoteActions.tsx | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx b/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx index f35137b77..2aa527fea 100644 --- a/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx +++ b/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx @@ -46,7 +46,7 @@ export default function MobileDetailMenu() { + itemsAtStart={<>
{t("close_pane_button.close_this_pane")} } + } + itemsNearNoteSettings={<> {note.type === "text" && } {note.type === "code" && setCodeNoteSwitcherModalShown(true)}>{t("status_bar.code_note_switcher")}} setNoteInfoModalShown(true)}>{t("note_info_widget.title")} diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx index daeab278c..b81867270 100644 --- a/apps/client/src/widgets/ribbon/NoteActions.tsx +++ b/apps/client/src/widgets/ribbon/NoteActions.tsx @@ -63,10 +63,11 @@ function RevisionsButton({ note }: { note: FNote }) { type ItemToFocus = "basic-properties"; -export function NoteContextMenu({ note, noteContext, extraItems, dropdownRef: externalDropdownRef }: { +export function NoteContextMenu({ note, noteContext, itemsAtStart, itemsNearNoteSettings, dropdownRef: externalDropdownRef }: { note: FNote, noteContext?: NoteContext, - extraItems?: ComponentChildren; + itemsAtStart?: ComponentChildren; + itemsNearNoteSettings?: ComponentChildren; dropdownRef?: RefObject; }) { const dropdownRef = useSyncedRef(externalDropdownRef, null); @@ -112,7 +113,7 @@ export function NoteContextMenu({ note, noteContext, extraItems, dropdownRef: ex onHidden={() => itemToFocusRef.current = null } mobileBackdrop > - {extraItems} + {itemsAtStart} {isReadOnly && <> } + {itemsNearNoteSettings} + parentComponent?.triggerCommand("showImportDialog", { noteId: note.noteId })} />