fix: 笔记列表 hover 操作按钮与日期互换显示
This commit is contained in:
parent
8ce1072b0c
commit
2ade39d58f
@ -582,8 +582,9 @@ function DraggableNoteItem({ note, active, editing, editValue, editRef, activeTa
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{hovered ? (
|
||||
<div className="flex items-center gap-0.5 shrink-0">
|
||||
{hovered ? (
|
||||
<>
|
||||
<button
|
||||
className="toolbar-btn"
|
||||
style={{ width: 20, height: 20, color: note.starred ? '#f59e0b' : 'var(--text-faint)' }}
|
||||
@ -602,13 +603,14 @@ function DraggableNoteItem({ note, active, editing, editValue, editRef, activeTa
|
||||
>
|
||||
<Trash2 size={12} />
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<span className="text-xs shrink-0 mt-0.5" style={{ color: 'var(--text-faint)' }}>
|
||||
<span className="text-xs" style={{ color: 'var(--text-faint)' }}>
|
||||
{formatDate(note.updatedAt)}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{note.tags.length > 0 && (
|
||||
<div className="flex gap-1 mt-1 flex-wrap">
|
||||
{note.tags.slice(0, 3).map(tag => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user