From 68ecb1630329d556b79d4daae8385f0c5f522f5d Mon Sep 17 00:00:00 2001 From: hubian <908234780@qq.com> Date: Thu, 16 Apr 2026 12:16:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=A1=E7=89=87=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=92=8C=E6=9B=B4=E6=96=B0=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 每个收藏卡片底部显示日期 - 格式:04-16 11:09(月-日 时:分) - 有更新时显示:创建 → 更新 - 字体更小更淡,不影响卡片高度 --- xian_favor/api.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/xian_favor/api.py b/xian_favor/api.py index 1e8130f..4859214 100644 --- a/xian_favor/api.py +++ b/xian_favor/api.py @@ -539,11 +539,11 @@ INDEX_TEMPLATE = ''' .content { padding: 20px; } .card { margin-bottom: 8px; transition: transform 0.2s; } .card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); } - .card-body { padding: 10px 15px; } + .card-body { padding: 8px 12px; } .tag { margin-right: 5px; } .item-card { font-size: 14px; } - .item-card h6 { font-size: 14px; margin-bottom: 4px; } - .item-card p { margin-bottom: 4px; } + .item-card h6 { font-size: 14px; margin-bottom: 2px; } + .item-card p { margin-bottom: 2px; } .item-card .text-muted.small { font-size: 12px; } .type-text { border-left: 4px solid #17a2b8; } .type-link { border-left: 4px solid #28a745; } @@ -1184,6 +1184,9 @@ function renderItems(items) { ${item.url ? truncate(item.url, 50) : item.content ? truncate(item.content, 50) : item.note ? truncate(item.note, 50) : ''} ${item.type === 'todo' ? `${getStatusLabelShort(item.status)} ${getPriorityLabelShort(item.priority)} ${item.due_date ? '📅' + formatDueDate(item.due_date) : ''}` : ''}
++ ${formatShortDate(item.created_at)}${item.updated_at && item.updated_at !== item.created_at ? ' → ' + formatShortDate(item.updated_at) : ''} +