From 8a7bcc316ea39dd854c654933ec5144ea809df78 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 5 Feb 2026 22:25:01 +0200 Subject: [PATCH] chore(mobile): address requested changes --- .../client/src/widgets/launch_bar/BookmarkButtons.tsx | 2 +- apps/client/src/widgets/layout/NoteTitleActions.tsx | 2 +- .../src/widgets/mobile_widgets/mobile_detail_menu.tsx | 2 +- .../client/src/widgets/ribbon/SearchDefinitionTab.tsx | 11 ++++++----- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/client/src/widgets/launch_bar/BookmarkButtons.tsx b/apps/client/src/widgets/launch_bar/BookmarkButtons.tsx index 48bcc867f4..81f2c6e878 100644 --- a/apps/client/src/widgets/launch_bar/BookmarkButtons.tsx +++ b/apps/client/src/widgets/launch_bar/BookmarkButtons.tsx @@ -57,7 +57,7 @@ function SingleBookmark({ note }: { note: FNote }) { function MobileBookmarkItem({ noteId, bookmarkFolder }: { noteId: string, bookmarkFolder: boolean }) { const note = useNote(noteId); const noteIcon = useNoteIcon(note); - if (!note) return; + if (!note) return null; return ( !bookmarkFolder diff --git a/apps/client/src/widgets/layout/NoteTitleActions.tsx b/apps/client/src/widgets/layout/NoteTitleActions.tsx index c11b690b51..73ad3e0e89 100644 --- a/apps/client/src/widgets/layout/NoteTitleActions.tsx +++ b/apps/client/src/widgets/layout/NoteTitleActions.tsx @@ -23,7 +23,7 @@ export default function NoteTitleActions() { {noteType === "search" && } - {!viewScope?.viewMode || viewScope.viewMode === "default" && } + {(!viewScope?.viewMode || viewScope.viewMode === "default") && } ); } 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 2aa527feaa..909d3b6288 100644 --- a/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx +++ b/apps/client/src/widgets/mobile_widgets/mobile_detail_menu.tsx @@ -194,7 +194,7 @@ function NoteInfoModal({ note, modalShown, setModalShown }: { note: FNote | null show={modalShown} onHidden={() => setModalShown(false)} > - {note && } + {note && } ); } diff --git a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx index d3f974ce9c..2d58fc1913 100644 --- a/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx +++ b/apps/client/src/widgets/ribbon/SearchDefinitionTab.tsx @@ -87,9 +87,10 @@ export default function SearchDefinitionTab({ note, ntxId, hidden }: Pick{t("search_definition.add_search_option")} ( + desktop={searchOptions?.availableOptions.map(({ icon, label, tooltip, attributeName, attributeType, defaultValue }) => (