feat(logs): enhance usage logs table with log type indicators and improve UI elements

This commit is contained in:
CaIon
2026-04-28 20:29:23 +08:00
parent 22ef5b2f80
commit db48108d21
8 changed files with 289 additions and 185 deletions
-1
View File
@@ -162,7 +162,6 @@ export function formatTokens(tokens: number): string {
* Format use time in seconds with appropriate unit
*/
export function formatUseTime(seconds: number): string {
if (seconds < 1) return `${(seconds * 1000).toFixed(0)}ms`
if (seconds < 60) return `${seconds.toFixed(1)}s`
const minutes = Math.floor(seconds / 60)
const remainingSeconds = seconds % 60