Please provide the code changes or file diffs you would like me to summarize.

This commit is contained in:
liumangmang
2026-05-07 14:12:54 +08:00
parent 3f0ebe24e0
commit 2d9011b606
17 changed files with 375 additions and 379 deletions
@@ -110,12 +110,12 @@ export default function TransferCenterModal({
const unsubscribe = subscribeUploadProgress(taskId, (task) => {
updateTaskGroup(groupId, (current) => {
const nextItems = current.items.map((item) =>
item.taskId === task.taskId
item.taskId === task.taskId
? {
...item,
progress: task.progress,
status: task.status,
message: task.error || (task.status === 'success' ? '上传完成' : task.status === 'error' ? '上传失败' : task.status === 'cancelled' ? '已取消' : '正在传输...'),
message: task.error || (task.status === 'success' ? '上传完成' : task.status === 'error' ? '上传失败' : '正在传输...'),
}
: item,
)
@@ -231,9 +231,9 @@ export default function TransferCenterModal({
<div className="rounded-xl border border-slate-700 bg-black px-4 py-3 text-sm text-slate-400"></div>
</div>
</div>
<div className="flex-1 space-y-2">
<span className="text-sm text-slate-300">3. </span>
<div className="rounded-2xl border border-slate-700 bg-black p-2">
<div className="flex min-h-0 flex-1 flex-col space-y-2">
<span className="shrink-0 text-sm text-slate-300">3. </span>
<div className="min-h-0 flex-1 overflow-y-auto rounded-2xl border border-slate-700 bg-black p-2">
{connections.map((server) => {
const st = connectionStatuses[server.id]
const isOnline = st === 'online'