修改置顶样式

This commit is contained in:
anian
2026-07-03 11:27:48 +08:00
parent fc866e23f9
commit b7ecfa5e35
4 changed files with 7 additions and 4 deletions
+3
View File
@@ -2,6 +2,9 @@
> 基于原作者v0.29.1代码修改 > 基于原作者v0.29.1代码修改
#### v0.29.1-1补丁
1. 置顶内容取消不可被折叠的特性;发现、归档页新增置顶效果及图标
#### v0.29.1-1 #### v0.29.1-1
1. 修改默认配置 1. 修改默认配置
@@ -53,7 +53,7 @@ const MemoBody: React.FC<MemoBodyProps> = ({ compact }) => {
content={memo.content} content={memo.content}
onClick={handleMemoContentClick} onClick={handleMemoContentClick}
onDoubleClick={handleMemoContentDoubleClick} onDoubleClick={handleMemoContentDoubleClick}
compact={memo.pinned ? false : compact} // Always show full content when pinned compact={compact}
/> />
<AttachmentListView attachments={memo.attachments} onImagePreview={openPreview} /> <AttachmentListView attachments={memo.attachments} onImagePreview={openPreview} />
<RelationListView relations={referencedMemos} currentMemoName={memo.name} parentPage={parentPage} /> <RelationListView relations={referencedMemos} currentMemoName={memo.name} parentPage={parentPage} />
+1 -1
View File
@@ -23,7 +23,7 @@ const Archived = () => {
return ( return (
<PagedMemoList <PagedMemoList
renderer={(memo: Memo) => <MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showVisibility compact />} renderer={(memo: Memo) => <MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showVisibility showPinned compact />}
listSort={listSort} listSort={listSort}
state={State.ARCHIVED} state={State.ARCHIVED}
orderBy={orderBy} orderBy={orderBy}
+2 -2
View File
@@ -23,13 +23,13 @@ const Explore = () => {
// Get sorting logic using unified hook (no pinned sorting) // Get sorting logic using unified hook (no pinned sorting)
const { listSort, orderBy } = useMemoSorting({ const { listSort, orderBy } = useMemoSorting({
pinnedFirst: false, pinnedFirst: true,
state: State.NORMAL, state: State.NORMAL,
}); });
return ( return (
<PagedMemoList <PagedMemoList
renderer={(memo: Memo) => <MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showCreator showVisibility compact />} renderer={(memo: Memo) => <MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showCreator showVisibility showPinned compact />}
listSort={listSort} listSort={listSort}
orderBy={orderBy} orderBy={orderBy}
filter={memoFilter} filter={memoFilter}