From 854c1aa37d52645ad8c34ecde4d9b91de857c5d5 Mon Sep 17 00:00:00 2001 From: lyzno1 <92089059+lyzno1@users.noreply.github.com> Date: Wed, 13 Aug 2025 10:15:45 +0800 Subject: [PATCH] fix: goto-anything highlighting consistency improvements (#23843) --- web/app/components/goto-anything/command-selector.tsx | 2 +- web/app/components/goto-anything/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/goto-anything/command-selector.tsx b/web/app/components/goto-anything/command-selector.tsx index 2b62c92a59..d13421a0eb 100644 --- a/web/app/components/goto-anything/command-selector.tsx +++ b/web/app/components/goto-anything/command-selector.tsx @@ -61,7 +61,7 @@ const CommandSelector: FC = ({ actions, onCommandSelect, searchFilter, co className="flex cursor-pointer items-center rounded-md p-2.5 transition-all - duration-150 hover:bg-state-base-hover-alt aria-[selected=true]:bg-state-base-hover" + duration-150 hover:bg-state-base-hover aria-[selected=true]:bg-state-base-hover-alt" onSelect={() => onCommandSelect(action.shortcut)} > diff --git a/web/app/components/goto-anything/index.tsx b/web/app/components/goto-anything/index.tsx index 2d2d56eea1..bff0773a46 100644 --- a/web/app/components/goto-anything/index.tsx +++ b/web/app/components/goto-anything/index.tsx @@ -37,6 +37,7 @@ const GotoAnything: FC = ({ const handleNavSearch = useCallback((q: string) => { setShow(true) setSearchQuery(q) + setCmdVal('') requestAnimationFrame(() => inputRef.current?.focus()) }, []) // Filter actions based on context @@ -333,7 +334,7 @@ const GotoAnything: FC = ({ handleNavigate(result)} > {result.icon}