style: 匹配素材按钮移到上传素材旁边

This commit is contained in:
小鱼开发
2026-05-21 21:29:33 +08:00
parent d6fe43b7c3
commit 59237f1098
@@ -113,12 +113,12 @@ const ShotTimeline: React.FC<ShotTimelineProps> = ({
</span>
{materialMatchMap[String(shot.id)] ? (
<span style={{ display: 'flex', alignItems: 'center', gap: '4px' }}>
<span style={{ display: 'flex', alignItems: 'center', gap: '4px', flex: 1 }}>
{userUploadedMaterials[String(shot.id)] ? '已上传' : '已匹配'}
{materialMatchMap[String(shot.id)]!.duration.toFixed(1)}s
</span>
) : (
<span> </span>
<span style={{ flex: 1 }}> </span>
)}
<button
className="btn btn-ghost btn-sm"
@@ -141,7 +141,6 @@ const ShotTimeline: React.FC<ShotTimelineProps> = ({
fontSize: '11px',
padding: '2px 6px',
color: 'var(--primary)',
marginLeft: 'auto',
}}
onClick={(e) => {
e.stopPropagation();