diff --git a/frontend/src/components/CollectionCardMini.tsx b/frontend/src/components/CollectionCardMini.tsx index 0a5922a4..fd8bd6cb 100644 --- a/frontend/src/components/CollectionCardMini.tsx +++ b/frontend/src/components/CollectionCardMini.tsx @@ -108,214 +108,212 @@ const CollectionCardMini: React.FC = ({ > + {/* 右上角合集类型标签 */}
+ {collection.collection_type === 'ai_recommended' ? 'AI推荐' : '手动创建'} +
+ + {/* 左下角片段数量 */} +
{collectionClips.length} 个片段
+ + {/* 右下角总时长 */} +
+ {formatDuration(totalDuration)} +
{/* 内容区域 - 固定高度 */}
- {/* 标题和标签区域 - 固定高度 */} + {/* 内容区域 - 固定高度 */}
+ {/* 标题区域 - 固定高度 */}
- - { - // 更新合集标题 - if (onUpdate) { - onUpdate(collection.id, { collection_title: newTitle }) - } - }} - style={{ - fontSize: '15px', - fontWeight: 600, - lineHeight: '1.4', - color: '#ffffff', - width: '100%', - display: '-webkit-box', - WebkitLineClamp: 2, - WebkitBoxOrient: 'vertical', - overflow: 'hidden', - textOverflow: 'ellipsis' - }} - /> - -
- - {collection.collection_type === 'ai_recommended' ? 'AI推荐' : '手动创建'} - -
- - {/* 描述区域 - 固定高度 */} -
- - { + // 更新合集标题 + if (onUpdate) { + onUpdate(collection.id, { collection_title: newTitle }) + } + }} style={{ - fontSize: '12px', - color: '#b0b0b0', + fontSize: '16px', + fontWeight: 600, + lineHeight: '1.4', + color: '#ffffff', + width: '100%', display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical', overflow: 'hidden', - lineHeight: '1.4', - width: '100%', - cursor: 'pointer' + textOverflow: 'ellipsis' }} + /> +
+ + {/* 合集描述 - 固定高度 */} +
+ - {collection.collection_summary || '暂无描述'} - - +
+ {collection.collection_summary || '暂无描述'} +
+ +
- {/* 底部区域 */} -
-
- - {collectionClips.length} 个片段 - - - {formatDuration(totalDuration)} - -
- -
+ + {onGenerateVideo && ( - )} - - {onDelete && ( - { - e?.stopPropagation() - onDelete(collection.id) - }} - onCancel={(e) => e?.stopPropagation()} - okText="确定" - cancelText="取消" - > -
-
)