From 7ee060b228bf86da60ab5164fdfd357c30e571d4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 9 Dec 2025 14:41:17 +0200 Subject: [PATCH] feat(tab_navigation): improve indicator for current item in context menu --- .../src/widgets/launch_bar/HistoryNavigation.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/client/src/widgets/launch_bar/HistoryNavigation.tsx b/apps/client/src/widgets/launch_bar/HistoryNavigation.tsx index e861e3358..e212d9af7 100644 --- a/apps/client/src/widgets/launch_bar/HistoryNavigation.tsx +++ b/apps/client/src/widgets/launch_bar/HistoryNavigation.tsx @@ -47,16 +47,16 @@ export function handleHistoryContextMenu(webContents: WebContents) { if (!notePath) continue; const title = await tree.getNotePathTitle(notePath); + const index = parseInt(idx, 10); items.push({ title, command: idx, - uiIcon: - parseInt(idx, 10) === activeIndex - ? "bx bx-radio-circle-marked" // compare with type coercion! - : parseInt(idx, 10) < activeIndex - ? "bx bx-left-arrow-alt" - : "bx bx-right-arrow-alt" + checked: index === activeIndex, + enabled: index !== activeIndex, + uiIcon: index !== activeIndex && index < activeIndex + ? "bx bx-left-arrow-alt" + : "bx bx-right-arrow-alt" }); }