From c9ff2ea704078545900f5186e8cae93504fa522d Mon Sep 17 00:00:00 2001 From: tianma-if Date: Fri, 25 Sep 2026 23:48:55 +0800 Subject: [PATCH] fix(web): match the memo search field to the workspace palette Use the sidebar and list grays instead of the neutral slate fill, and mark focus with the workspace divider. --- apps/web/src/components/MemoListPane.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsx index 87935917..2826ea82 100644 --- a/apps/web/src/components/MemoListPane.tsx +++ b/apps/web/src/components/MemoListPane.tsx @@ -525,6 +525,7 @@ export const MemoListPane = ({ const selectedMemosInList = useMemo(() => memos.filter((memo) => selectedMemoIds.has(memo.id)), [memos, selectedMemoIds]); const searchInputRef = useRef(null); + const [searchFocused, setSearchFocused] = useState(false); const mobileSearchInputRef = useRef(null); const listRootRef = useRef(null); const listScrollRef = useRef(null); @@ -1079,10 +1080,11 @@ export const MemoListPane = ({
@@ -1097,6 +1099,8 @@ export const MemoListPane = ({ enterKeyHint="search" spellCheck={false} onChange={(event) => handleSearchChange(event.target.value)} + onFocus={() => setSearchFocused(true)} + onBlur={() => setSearchFocused(false)} onKeyDown={(event) => { if (event.key !== "Escape") { return; @@ -1203,10 +1207,11 @@ export const MemoListPane = ({
@@ -1221,6 +1226,8 @@ export const MemoListPane = ({ enterKeyHint="search" spellCheck={false} onChange={(event) => handleSearchChange(event.target.value)} + onFocus={() => setSearchFocused(true)} + onBlur={() => setSearchFocused(false)} onKeyDown={(event) => { if (event.key === "Escape" && search) { event.preventDefault();