diff --git a/web/src/components/PagedMemoList/PagedMemoList.tsx b/web/src/components/PagedMemoList/PagedMemoList.tsx index 5dcc31892..25fabd14a 100644 --- a/web/src/components/PagedMemoList/PagedMemoList.tsx +++ b/web/src/components/PagedMemoList/PagedMemoList.tsx @@ -182,18 +182,21 @@ const PagedMemoList = (props: Props) => { {(() => { const hasPinned = pinnedMemos.length > 0; const pinnedToggle = enablePinnedSection && hasPinned && ( - +
+ + ); const prefixElement = ( @@ -210,6 +213,22 @@ const PagedMemoList = (props: Props) => { return ; } + if (layout === "LIST") { + const listMemoList = isPinnedCollapsed ? unpinnedMemos : sortedMemoList; + const lastPinnedName = !isPinnedCollapsed && hasPinned ? pinnedMemos[pinnedMemos.length - 1]?.name : undefined; + const listRenderer = lastPinnedName + ? (memo: Memo, context?: MemoRenderContext) => ( + <> + {props.renderer(memo, context)} + {memo.name === lastPinnedName && ( +