debug4
All checks were successful
Deploy to Server / deploy (push) Successful in 17s

This commit is contained in:
jeremygan2021
2026-03-23 00:19:14 +08:00
parent 4f87427a77
commit 1caa64fe71
2 changed files with 12 additions and 2 deletions

View File

@@ -326,7 +326,12 @@ export default function ProjectEdit() {
style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px', background: '#f8f8f8', marginBottom: '8px', borderRadius: '4px' }}
onClick={() => handlePreviewFile(file)}
>
<Text className='file-name' style={{ flex: 1, fontSize: '14px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: '#333' }}>{file.name || '未知文件'}</Text>
<View style={{ flex: 1 }}>
<Text className='file-name' style={{ fontSize: '14px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: '#333' }}>{file.name || '未知文件'}</Text>
{file.file_size_display && (
<Text style={{ fontSize: '12px', color: '#999' }}>{file.file_size_display}</Text>
)}
</View>
<Text className='delete' style={{ color: '#ff4d4f', marginLeft: '10px', fontSize: '14px' }} onClick={(e) => { e.stopPropagation(); handleDeleteFile(file.id) }}></Text>
</View>
))}