Skip to content

A full-featured download manager.

fix(ui): polish dashboard metrics, tray speeds and download labels (#2175)

Dr_rOot7df31c3d592e
diff --git a/e2e/dashboard.spec.ts b/e2e/dashboard.spec.ts
index f5092682..6f8d90fc 100644
--- a/e2e/dashboard.spec.ts
+++ b/e2e/dashboard.spec.ts
@@ -71,8 +71,9 @@ test.describe('Dashboard v1', () => {
.toBe(tileTop)
})
- test('cold launch renders seven default tile labels within 800ms', async ({
+ test('renders 160px square tiles at minimum window size, including configure mode', async ({
mainWindow,
+ electronApp,
}) => {
// Navigate to dashboard (hash router — '#/' is the dashboard route)
await mainWindow.waitForLoadState('domcontentloaded')
@@ -81,6 +82,7 @@ test.describe('Dashboard v1', () => {
await expect(mainWindow.locator('html')).toHaveClass(/window-main/, {
timeout: 15_000,
})
+ await setTaskInspectorContentSize(electronApp, mainWindow, 914, 672)
// Click the Dashboard nav link to ensure we're on the dashboard route
await mainWindow.getByRole('link', { name: 'Dashboard' }).click()
@@ -124,6 +126,25 @@ test.describe('Dashboard v1', () => {
.getByText('Transfer', { exact: true })
).toBeVisible({ timeout: 800 }),
])
+
+ const engine = mainWindow.getByTestId('dashboard-tile-engine')
+ const expectSquareTile = () =>
+ expect
+ .poll(() => engine.boundingBox())
+ .toMatchObject({
+ width: 160,
+ height: 160,
+ })
+ await expectSquareTile()
+ await mainWindow
+ .getByRole('button', { name: 'Configure', exact: true })
+ .click()
+ await expectSquareTile()
+ await mainWindow
+ .getByRole('toolbar', { name: 'Configure', exact: true })
+ .getByRole('button', { name: 'Cancel', exact: true })
+ .click()
+ await expectSquareTile()
})
test.skip('window narrows below 904px → Tasks falls beneath grid', async () => {
diff --git a/src/main/platform/tray-icon.test.ts b/src/main/platform/tray-icon.test.ts
index 57c47af2..7aa77681 100644
--- a/src/main/platform/tray-icon.test.ts
+++ b/src/main/platform/tray-icon.test.ts
@@ -112,24 +112,37 @@ describe('createLinuxIconProvider', () => {
})
describe('formatSpeed', () => {
- it('keeps integer kilobytes as the minimum unit in decimal mode', () => {
+ it.each([
+ [12.34, '12.34 MiB/s'],
+ [999.99, '999.99 MiB/s'],
+ [999.999, '1000 MiB/s'],
+ [1000.23, '1000 MiB/s'],
+ [1023.49, '1023 MiB/s'],
+ [1023.5, '1.00 GiB/s'],
+ [1023.99, '1.00 GiB/s'],
+ ])('formats %s MiB/s for the compact tray', (speed, expected) => {
+ expect(formatSpeed(Math.round(speed * 1_048_576), 'binary')).toBe(expected)
+ })
+
+ it('keeps two decimal places with kilobytes as the minimum unit', () => {
expect(formatSpeed(0)).toBe('0 KB/s')
- expect(formatSpeed(512)).toBe('1 KB/s')
- expect(formatSpeed(50_000)).toBe('50 KB/s')
- expect(formatSpeed(999_999)).toBe('1000 KB/s')
+ expect(formatSpeed(512)).toBe('0.51 KB/s')
+ expect(formatSpeed(50_000)).toBe('50.00 KB/s')
+ expect(formatSpeed(999_990)).toBe('999.99 KB/s')
+ expect(formatSpeed(999_999)).toBe('1.00 MB/s')
})
- it('keeps one decimal place for megabytes and above in decimal mode', () => {
- expect(formatSpeed(16_500_000)).toBe('16.5 MB/s')
- expect(formatSpeed(125_000_000)).toBe('125.0 MB/s')
- expect(formatSpeed(1_500_000_000)).toBe('1.5 GB/s')
+ it('keeps two decimal places for megabytes and above', () => {
+ expect(formatSpeed(16_543_210)).toBe('16.54 MB/s')
+ expect(formatSpeed(125_000_000)).toBe('125.00 MB/s')
+ expect(formatSpeed(1_500_000_000)).toBe('1.50 GB/s')
})
- it('preserves the original binary rounding with IEC labels', () => {
+ it('uses two decimal places with IEC labels and promotes rounded units', () => {
expect(formatSpeed(0, 'binary')).toBe('0 KiB/s')
- expect(formatSpeed(512, 'binary')).toBe('1 KiB/s')
- expect(formatSpeed(50 * 1024, 'binary')).toBe('50 KiB/s')
- expect(formatSpeed(1_048_575, 'binary')).toBe('1024 KiB/s')
- expect(formatSpeed(1_048_576, 'binary')).toBe('1.0 MiB/s')
- expect(formatSpeed(125 * 1_048_576, 'binary')).toBe('125.0 MiB/s')
- expect(formatSpeed(1_073_741_824, 'binary')).toBe('1.0 GiB/s')
+ expect(formatSpeed(512, 'binary')).toBe('0.50 KiB/s')
+ expect(formatSpeed(50 * 1024, 'binary')).toBe('50.00 KiB/s')
+ expect(formatSpeed(1_048_575, 'binary')).toBe('1.00 MiB/s')
+ expect(formatSpeed(1_048_576, 'binary')).toBe('1.00 MiB/s')
+ expect(formatSpeed(125 * 1_048_576, 'binary')).toBe('125.00 MiB/s')
+ expect(formatSpeed(1_073_741_824, 'binary')).toBe('1.00 GiB/s')
})
})
diff --git a/src/main/platform/tray-icon.ts b/src/main/platform/tray-icon.ts
index f3bff679..f931902b 100644
--- a/src/main/platform/tray-icon.ts
+++ b/src/main/platform/tray-icon.ts
@@ -17,24 +17,31 @@ const UNITS = {
binary: ['KiB/s', 'MiB/s', 'GiB/s', 'TiB/s'],
} as const
+function formatSpeedNumber(value: number): string {
+ const twoDecimals = value.toFixed(2)
+ // Include rounding across 999.99 so four-digit values never keep decimals.
+ return Number(twoDecimals) >= 1000 ? value.toFixed(0) : twoDecimals
+}
+
export function formatSpeed(
bytes: number,
unitSystem: ByteUnitSystem = DEFAULT_BYTE_UNIT_SYSTEM
): string {
const base = unitSystem === 'binary' ? 1024 : 1000
const units = UNITS[unitSystem]
+ if (bytes === 0) return `0 ${units[0]}`
// The tray keeps its compact presentation: minimum KB/s or KiB/s.
let value = bytes / base
let unitIndex = 0
+ let number = formatSpeedNumber(value)
- while (value >= base && unitIndex < units.length - 1) {
+ while (Number(number) >= base && unitIndex < units.length - 1) {
value /= base
unitIndex++
+ number = formatSpeedNumber(value)
}
- // KB/s or KiB/s: no decimal; MB/s or MiB/s and above: one decimal.
- if (unitIndex === 0) return `${Math.round(value)} ${units[unitIndex]}`
- return `${value.toFixed(1)} ${units[unitIndex]}`
+ return `${number} ${units[unitIndex]}`
}
// ─── TrayIconProvider interface ─────────────────────────────
diff --git a/src/main/platform/tray-speedometer.test.ts b/src/main/platform/tray-speedometer.test.ts
index 4a44a5b0..c391a6bc 100644
--- a/src/main/platform/tray-speedometer.test.ts
+++ b/src/main/platform/tray-speedometer.test.ts
@@ -14,11 +14,23 @@ import { buildSpeedometerSvg } from './tray-speedometer'
const MOCK_ICON_SVG = '<rect width="32" height="32" fill="black"/>'
describe('buildSpeedometerSvg', () => {
+ it('keeps the 144px canvas when speeds need compact precision', () => {
+ const svg = buildSpeedometerSvg(
+ MOCK_ICON_SVG,
+ Math.round(1000.23 * 1_048_576),
+ Math.round(1023.99 * 1_048_576),
+ 'binary'
+ )
+ expect(svg).toContain('width="144" height="44"')
+ expect(svg).toContain('1000 MiB/s')
+ expect(svg).toContain('1.00 GiB/s')
+ })
+
it('produces valid SVG with speed text', () => {
const svg = buildSpeedometerSvg(MOCK_ICON_SVG, 1024, 1048576)
expect(svg).toContain('<svg')
- expect(svg).toContain('1 KB/s')
- expect(svg).toContain('1.0 MB/s')
+ expect(svg).toContain('1.02 KB/s')
+ expect(svg).toContain('1.05 MB/s')
})
it('shows zero speeds', () => {
@@ -39,6 +51,6 @@ it('uses IEC units in the speedometer when selected', () => {
1_073_741_824,
'binary'
)
- expect(svg).toContain('1.0 MiB/s')
- expect(svg).toContain('1.0 GiB/s')
+ expect(svg).toContain('1.00 MiB/s')
+ expect(svg).toContain('1.00 GiB/s')
})
diff --git a/src/main/platform/tray-speedometer.ts b/src/main/platform/tray-speedometer.ts
index 10448e97..47ee25ef 100644
--- a/src/main/platform/tray-speedometer.ts
+++ b/src/main/platform/tray-speedometer.ts
@@ -8,17 +8,17 @@ import type { NativeImage, Tray } from 'electron'
import { nativeImage } from 'electron'
import { formatSpeed } from './tray-icon'
-// ─── SVG Layout (@2x pixels, scaleFactor 2 → 71×22 pt) ─────
+// ─── SVG Layout (@2x pixels, scaleFactor 2 → 72×22 pt) ─────
//
// ┌─────────────────────────────────┐
-// │ ┌──────┐ 1.2 MB/s │
-// │ │ icon │ 5.8 MB/s │
-// │ │36×36 │ (right-aligned) │
+// │ ┌──────┐ 1.23 MB/s │
+// │ │ icon │ 5.89 MB/s │
+// │ │32×32 │ (right-aligned) │
// │ └──────┘ │
// └─────────────────────────────────┘
-// 0 40 46 142
+// 0 40 46 144
-const SVG_WIDTH = 142 // 4pt wider than the original to fit IEC unit labels
+const SVG_WIDTH = 144 // Four-digit speeds omit decimals to fit IEC labels
const SVG_HEIGHT = 44
const ICON_SIZE = 32
const ICON_SCALE = ICON_SIZE / 32 // tray.svg is 32×32
diff --git a/src/renderer/lib/speed-chart.test.ts b/src/renderer/lib/speed-chart.test.ts
index e70e9548..efc254b1 100644
--- a/src/renderer/lib/speed-chart.test.ts
+++ b/src/renderer/lib/speed-chart.test.ts
@@ -3,8 +3,54 @@ import { describe, expect, it } from 'vitest'
import {
activityTimeDomain,
normalizeObservedSpeedHistory,
+ sampleSpeedHistory,
} from './speed-chart'
+describe('Dashboard speed chart sampling', () => {
+ it.each(['up', 'down'] as const)(
+ 'reduces dense %s history while preserving observed points, time bounds, and the peak',
+ (direction) => {
+ const history = Array.from({ length: 200 }, (_, index) => ({
+ t: 1_000 + index * 1_000,
+ up: index === 83 ? 1_000 : 100 + (index % 7) * 10,
+ down: index === 127 ? 2_000 : 200 + (index % 11) * 10,
+ }))
+ const original = structuredClone(history)
+ const sampled = sampleSpeedHistory(history, 16, direction)
+
+ expect(sampled).toHaveLength(16)
+ expect(sampled[0]).toBe(history[0])
+ expect(sampled.at(-1)).toBe(history.at(-1))
+ expect(Math.max(...sampled.map((point) => point[direction]))).toBe(
+ Math.max(...history.map((point) => point[direction]))
+ )
+ for (let index = 1; index < sampled.length; index++) {
+ expect(history).toContain(sampled[index])
+ expect(sampled[index].t).toBeGreaterThan(sampled[index - 1].t)
+ }
+ expect(history).toEqual(original)
+ expect(sampleSpeedHistory(history, 32, direction)).toHaveLength(32)
+ }
+ )
+
+ it('retains short histories and keeps idle data flat', () => {
+ const history = Array.from({ length: 200 }, (_, t) => ({
+ t,
+ up: 0,
+ down: 0,
+ }))
+ const short = history.slice(0, 3)
+ expect(sampleSpeedHistory(short, 16, 'up')).toBe(short)
+ expect(sampleSpeedHistory([], 16, 'up')).toEqual([])
+ expect(sampleSpeedHistory(history, 16, 'up')).toHaveLength(16)
+ expect(
+ sampleSpeedHistory(history, 16, 'up').every(
+ (point) => point.up === 0 && point.down === 0
+ )
+ ).toBe(true)
+ })
+})
+
describe('Activity speed chart utilities', () => {
it('never pads observed history with synthetic points', () => {
const point: SpeedPoint = { t: 1_000, down: 10, up: 2 }
diff --git a/src/renderer/lib/speed-chart.ts b/src/renderer/lib/speed-chart.ts
index d14867dd..4b3befba 100644
--- a/src/renderer/lib/speed-chart.ts
+++ b/src/renderer/lib/speed-chart.ts
@@ -28,6 +28,62 @@ export function normalizeSpeedHistory(
return [...padding, ...history]
}
+/** Select observed points by triangle area, retaining endpoints and the peak. */
+export function sampleSpeedHistory(
+ history: readonly SpeedPoint[],
+ maxPoints: number,
+ direction: 'up' | 'down'
+): readonly SpeedPoint[] {
+ const limit = Math.max(3, Math.floor(maxPoints))
+ if (history.length <= limit) return history
+
+ const peakIndex = history.reduce(
+ (peak, point, index) =>
+ point[direction] > history[peak][direction] ? index : peak,
+ 0
+ )
+ const bucketSize = (history.length - 2) / (limit - 2)
+ const sampled = [history[0]]
+ let previous = history[0]
+
+ for (let bucket = 0; bucket < limit - 2; bucket++) {
+ const start = Math.floor(bucket * bucketSize) + 1
+ const end = Math.floor((bucket + 1) * bucketSize) + 1
+ const nextEnd = Math.min(
+ Math.floor((bucket + 2) * bucketSize) + 1,
+ history.length
+ )
+ let averageTime = 0
+ let averageSpeed = 0
+ for (let index = end; index < nextEnd; index++) {
+ averageTime += history[index].t
+ averageSpeed += history[index][direction]
+ }
+ averageTime /= nextEnd - end
+ averageSpeed /= nextEnd - end
+
+ let selected = start
+ let largestArea = -1
+ for (let index = start; index < end; index++) {
+ const point = history[index]
+ const area = Math.abs(
+ (previous.t - averageTime) * (point[direction] - previous[direction]) -
+ (previous.t - point.t) * (averageSpeed - previous[direction])
+ )
+ if (area > largestArea) {
+ largestArea = area
+ selected = index
+ }
+ }
+ if (peakIndex >= start && peakIndex < end) selected = peakIndex
+ previous = history[selected]
+ sampled.push(previous)
+ }
+
+ sampled.push(history[history.length - 1])
+ return sampled
+}
+
export function normalizeObservedSpeedHistory<T extends SpeedPoint>(
history: readonly T[],
maxPoints: number
diff --git a/src/renderer/routes/dashboard/dashboard-page.tsx b/src/renderer/routes/dashboard/dashboard-page.tsx
index 1955368a..a9d18331 100644
--- a/src/renderer/routes/dashboard/dashboard-page.tsx
+++ b/src/renderer/routes/dashboard/dashboard-page.tsx
@@ -181,7 +181,7 @@ export function DashboardPage() {
actions={dashboardActions}
headerClassName="px-2 compact-header:py-1"
actionsClassName="compact-header:min-h-[30px]"
- contentClassName="pl-2.5 pr-2 pt-4 pb-10"
+ contentClassName="pl-2.5 pr-2 pt-4 pb-12"
>
<DashboardGrid
layout={layout}
diff --git a/src/renderer/routes/dashboard/tiles/speed-tile.test.tsx b/src/renderer/routes/dashboard/tiles/speed-tile.test.tsx
index 59be731c..f85e38ce 100644
--- a/src/renderer/routes/dashboard/tiles/speed-tile.test.tsx
+++ b/src/renderer/routes/dashboard/tiles/speed-tile.test.tsx
@@ -43,6 +43,25 @@ const FOCUS = {
} satisfies DashboardTileViewport
describe('SpeedTile', () => {
+ it('keeps samples distributed across the chart after a long sampling gap', () => {
+ const now = Date.now()
+ const history = Array.from({ length: 200 }, (_, index) => ({
+ t: index === 0 ? now - 86_400_000 : now - (199 - index) * 1_000,
+ up: 100 + (index % 7) * 10,
+ down: 200 + (index % 11) * 10,
+ }))
+ const { container } = render(
+ <SpeedTile kind="up" history={history} viewport={COMPACT} />
+ )
+ const path = container
+ .querySelector('.recharts-area-curve')
+ ?.getAttribute('d')
+ expect(path).toBeDefined()
+ expect(Number(path?.match(/^M([\d.-]+)/)?.[1])).toBeCloseTo(0)
+ const firstSegment = path?.match(/C([^C]+)/)?.[1].match(/[\d.-]+/g)
+ expect(Number(firstSegment?.[4])).toBeLessThan(60)
+ })
+
it('renders the UPLOAD label and current up speed', () => {
render(<SpeedTile kind="up" history={points} viewport={SUMMARY} />)
expect(screen.getByText(/UPLOAD|上传/i)).toBeInTheDocument()
@@ -56,13 +75,14 @@ describe('SpeedTile', () => {
expect(screen.getAllByText(/150/).length).toBeGreaterThanOrEqual(1)
})
- it('renders the area stroke at 2px for non-zero speeds', () => {
+ it('renders a lighter smooth stroke for non-zero speeds', () => {
const { container } = render(
<SpeedTile kind="down" history={points} viewport={SUMMARY} />
)
const line = container.querySelector('.recharts-area-curve')
expect(line).not.toBeNull()
- expect(line).toHaveAttribute('stroke-width', '2')
+ expect(line).toHaveAttribute('stroke-width', '1.5')
+ expect(line?.getAttribute('d')).toContain('C')
})
it('renders only the KPI and minimal chart treatment when compact', () => {
diff --git a/src/renderer/routes/dashboard/tiles/speed-tile.tsx b/src/renderer/routes/dashboard/tiles/speed-tile.tsx
index 0ae58ae7..fb81fe30 100644
--- a/src/renderer/routes/dashboard/tiles/speed-tile.tsx
+++ b/src/renderer/routes/dashboard/tiles/speed-tile.tsx
@@ -1,11 +1,15 @@
// src/renderer/routes/dashboard/tiles/speed-tile.tsx
import { type ChartConfig, ChartContainer } from '@renderer/components/ui/chart'
import { useByteFormat } from '@renderer/hooks/use-byte-format'
-import { chartCeiling, normalizeSpeedHistory } from '@renderer/lib/speed-chart'
+import {
+ chartCeiling,
+ normalizeSpeedHistory,
+ sampleSpeedHistory,
+} from '@renderer/lib/speed-chart'
import { cn } from '@renderer/lib/utils'
import type { SpeedPoint } from '@shared/types/stats'
import { useTranslation } from 'react-i18next'
-import { Area, AreaChart, YAxis } from 'recharts'
+import { Area, AreaChart, XAxis, YAxis } from 'recharts'
import { TileShell } from '../components/tile-shell'
import { TileTitle } from '../components/tile-title'
import type { DashboardTileViewport } from '../layout/dashboard-registry'
@@ -38,7 +42,16 @@ export function SpeedTile({
const showPeak =
viewport.contentLevel === 'detailed' || viewport.contentLevel === 'focus'
const focus = viewport.contentLevel === 'focus'
- const chartData = normalizeSpeedHistory(history)
+ const normalizedHistory = normalizeSpeedHistory(history)
+ // Preserve sample spacing: clock gaps must not compress recent activity.
+ const chartData = sampleSpeedHistory(
+ normalizedHistory,
+ viewport.span.w * 16,
+ dataKey
+ ).map((point) => ({
+ ...point,
+ position: normalizedHistory.indexOf(point),
+ }))
const visibleMax = Math.max(peak, current)
const chartMax = chartCeiling(visibleMax)
const chartMin = -chartMax / 7
@@ -108,12 +121,18 @@ export function SpeedTile({
data={chartData}
margin={{ top: 0, right: 0, left: 0, bottom: 0 }}
>
+ <XAxis
+ dataKey="position"
+ type="number"
+ domain={['dataMin', 'dataMax']}
+ hide
+ />
<YAxis dataKey={dataKey} domain={[chartMin, chartMax]} hide />
<Area
- type="linear"
+ type="monotoneX"
dataKey={dataKey}
stroke={`var(--color-${kind})`}
- strokeWidth={2}
+ strokeWidth={1.5}
strokeLinecap="round"
strokeLinejoin="round"
baseValue={chartMin}
diff --git a/src/renderer/routes/dashboard/tiles/transfer-tile.test.tsx b/src/renderer/routes/dashboard/tiles/transfer-tile.test.tsx
index 1fdf2a8d..28905a8a 100644
--- a/src/renderer/routes/dashboard/tiles/transfer-tile.test.tsx
+++ b/src/renderer/routes/dashboard/tiles/transfer-tile.test.tsx
@@ -131,7 +131,7 @@ describe('TransferTile', () => {
expect(screen.queryByTestId('transfer-proportion-bar')).toBeNull()
expect(
screen.getByRole('region', {
- name: 'Today transfer total: 1.01 GB',
+ name: 'Today transfer total: 1.0 GB',
})
).toBeInTheDocument()
@@ -143,7 +143,7 @@ describe('TransferTile', () => {
expect(
screen.getByRole('button', { name: 'Transfer range: All Time' })
).toHaveTextContent('All Time')
- expect(screen.getByTestId('transfer-total')).toHaveTextContent('3.22 GB')
+ expect(screen.getByTestId('transfer-total')).toHaveTextContent('3.2 GB')
})
it('renders ordered transfer endpoints with proportional segments', () => {
diff --git a/src/renderer/routes/dashboard/tiles/transfer-tile.tsx b/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
index 184c0e8b..e574cd2d 100644
--- a/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
+++ b/src/renderer/routes/dashboard/tiles/transfer-tile.tsx
@@ -12,6 +12,7 @@ import type { TransferStatsState } from '@renderer/hooks/use-transfer-stats'
import { cn } from '@renderer/lib/utils'
import type { TransferRangeStats } from '@shared/types/stats'
+import { formatBytes as formatByteCount } from '@shared/utils/format-bytes'
import { ChevronDown } from 'lucide-react'
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
@@ -282,7 +283,7 @@ export function TransferTile({
viewport,
className,
}: TransferTileProps) {
- const { formatBytes } = useByteFormat()
+ const { unitSystem } = useByteFormat()
const { t, i18n } = useTranslation()
const [scope, setScope] = useState<TransferScope>('today')
@@ -293,7 +294,12 @@ export function TransferTile({
const snapshot = 'snapshot' in state ? state.snapshot : null
const range = snapshot?.[scope]
const totalIsZero = range ? parseByteCount(range.totalBytes) === 0n : false
- const formattedTotal = range ? formatBytes(range.totalBytes) : null
+ const formattedTotal = range
+ ? formatByteCount(range.totalBytes, {
+ unitSystem,
+ decimals: compact ? 1 : 2,
+ })
+ : null
const scopeLabel = t(`panel.dashboard.transfer.scope.${scope}`)
let statusCaption: string | null = null
diff --git a/src/renderer/routes/downloads/columns.ts b/src/renderer/routes/downloads/columns.ts
index 3af26853..e6dce6cd 100644
--- a/src/renderer/routes/downloads/columns.ts
+++ b/src/renderer/routes/downloads/columns.ts
@@ -11,9 +11,9 @@ export const TASK_COLUMNS: Record<
size: { width: 84, min: 72, max: 240, numeric: true },
progress: { width: 120, min: 100, max: 300, numeric: true },
status: { width: 100, min: 80, max: 240 },
- down: { width: 90, min: 80, max: 240, numeric: true },
- up: { width: 90, min: 80, max: 240, numeric: true },
- eta: { width: 80, min: 72, max: 240, numeric: true },
+ down: { width: 140, min: 140, max: 240, numeric: true },
+ up: { width: 140, min: 140, max: 240, numeric: true },
+ eta: { width: 112, min: 112, max: 240, numeric: true },
connections: { width: 90, min: 72, max: 240, numeric: true },
createdAt: { width: 196, min: 140, max: 300 },
finishedAt: { width: 196, min: 140, max: 300 },
diff --git a/src/renderer/routes/downloads/inspector/task-inspector-action-bar.tsx b/src/renderer/routes/downloads/inspector/task-inspector-action-bar.tsx
index fbddf653..865567ff 100644
--- a/src/renderer/routes/downloads/inspector/task-inspector-action-bar.tsx
+++ b/src/renderer/routes/downloads/inspector/task-inspector-action-bar.tsx
@@ -16,8 +16,8 @@ import {
FolderOpen,
Pause,
Play,
- RadioTower,
Repeat2,
+ Sprout,
Square,
Trash2,
} from 'lucide-react'
@@ -274,7 +274,7 @@ export function TaskInspectorActionBar({
n: actions.reseedCount,
total: actions.total,
})}
- icon={<RadioTower />}
+ icon={<Sprout />}
onClick={(e) => void actions.onReseed({ alt: e.altKey })}
/>
)}
diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.json
index b83b11cb..3a0c0e2f 100644
--- a/src/shared/locales/en-US.json
+++ b/src/shared/locales/en-US.json
@@ -579,8 +579,8 @@
"name": "Name",
"size": "Size",
"progress": "Progress",
- "down": "↓",
- "up": "↑",
+ "down": "Download speed",
+ "up": "Upload speed",
"eta": "ETA",
"connections": "Peers",
"status": "Status",
diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.json
index 257f5f95..df0a3956 100644
--- a/src/shared/locales/zh-CN.json
+++ b/src/shared/locales/zh-CN.json
@@ -576,9 +576,9 @@
"name": "名称",
"size": "大小",
"progress": "进度",
- "down": "↓",
- "up": "↑",
- "eta": "剩余",
+ "down": "下载速度",
+ "up": "上传速度",
+ "eta": "剩余时间",
"connections": "连接",
"status": "状态",
"createdAt": "创建时间",
diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.json
index 2f466c84..d4f1fb80 100644
--- a/src/shared/locales/zh-TW.json
+++ b/src/shared/locales/zh-TW.json
@@ -576,8 +576,8 @@
"name": "名稱",
"size": "大小",
"progress": "進度",
- "down": "↓",
- "up": "↑",
+ "down": "下載速度",
+ "up": "上傳速度",
"eta": "預估剩餘時間",
"connections": "對等節點",
"status": "狀態",