diff --git a/xian_favor/api.py b/xian_favor/api.py index fb11418..fd4a123 100644 --- a/xian_favor/api.py +++ b/xian_favor/api.py @@ -188,9 +188,14 @@ INDEX_TEMPLATE = ''' .sidebar a { color: #adb5bd; text-decoration: none; padding: 10px 20px; display: block; } .sidebar a:hover, .sidebar a.active { background: #495057; color: #fff; } .content { padding: 20px; } - .card { margin-bottom: 15px; transition: transform 0.2s; } + .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; } .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 .text-muted.small { font-size: 12px; } .type-text { border-left: 4px solid #17a2b8; } .type-link { border-left: 4px solid #28a745; } .type-column { border-left: 4px solid #6f42c1; } @@ -534,34 +539,22 @@ function renderItems(items) { } container.innerHTML = items.map(item => ` -
- ${item.url ? `${item.url}
` : ''}
- ${item.content ? truncate(item.content, 100) : ''}
-