mirror of https://github.com/usememos/memos.git
fix(ui): avoid list mode checks in masonry branch
This commit is contained in:
parent
e14f88232a
commit
2b78dc1dc7
|
|
@ -235,11 +235,11 @@ const PagedMemoList = (props: Props) => {
|
|||
memoList={isPinnedCollapsed ? [] : pinnedMemos}
|
||||
renderer={props.renderer}
|
||||
prefixElement={prefixElement}
|
||||
listMode={layout === "LIST"}
|
||||
listMode={false}
|
||||
/>
|
||||
{hasPinned && !isPinnedCollapsed && <div className="w-full max-w-2xl mx-auto my-2 h-px bg-border/60" aria-hidden="true" />}
|
||||
<div className={hasPinned ? "mt-2" : ""}>
|
||||
<MasonryView memoList={unpinnedMemos} renderer={props.renderer} listMode={layout === "LIST"} />
|
||||
<MasonryView memoList={unpinnedMemos} renderer={props.renderer} listMode={false} />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue