fix: stabilize mobile uploads and show transfer speed

This commit is contained in:
justme committed 2026-10-03 01:37:43 +08:00
1 parent 09d66092f5
commit c0d155c608
12 files changed
+279 -69

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { formatSize, formatTime } from '@/lib/format';
import { formatSize, formatTime, formatTransferProgress } from '@/lib/format';
import { useDownload } from '@/features/item/download';
import { InlineContent, inlineKindOf } from '@/features/item/InlineContent';
import { shortDevice, titleOf } from '@/features/item/summary';
@@ -33,6 +33,7 @@ export function LatestCard({ id, onOpen }: Props) {
{inline === 'text' ? null : <span className={styles.title}>{titleOf(item)}</span>}
<span className={styles.sub}>
{shortDevice(device)} · {formatTime(item.ts)} · {formatSize(size)}
{receiving !== null && item.state.kind === 'receiving' ? ` · ${formatTransferProgress(item.state)}` : ''}
</span>
</span>
</button>