From fdb36ead45c973a1ca5b855a92124af243991f10 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Sun, 7 Dec 2025 14:36:57 +0800 Subject: [PATCH] fix(usage): reorder cache columns and prevent header text wrapping - Swap cache read and cache write columns order - Add whitespace-nowrap to all table headers to prevent text wrapping - Improves table readability and layout consistency --- src/components/usage/RequestLogTable.tsx | 34 ++++++++++++++---------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/components/usage/RequestLogTable.tsx b/src/components/usage/RequestLogTable.tsx index 26dbc66b9..450509bd0 100644 --- a/src/components/usage/RequestLogTable.tsx +++ b/src/components/usage/RequestLogTable.tsx @@ -193,30 +193,36 @@ export function RequestLogTable() { - {t("usage.time", "时间")} - {t("usage.provider", "供应商")} - + + {t("usage.time", "时间")} + + + {t("usage.provider", "供应商")} + + {t("usage.billingModel", "计费模型")} - + {t("usage.inputTokens", "输入")} - + {t("usage.outputTokens", "输出")} - - {t("usage.cacheCreationTokens", "缓存写入")} - - + {t("usage.cacheReadTokens", "缓存读取")} - + + {t("usage.cacheCreationTokens", "缓存写入")} + + {t("usage.totalCost", "成本")} - + {t("usage.timingInfo", "用时/首字")} - {t("usage.status", "状态")} + + {t("usage.status", "状态")} + @@ -252,10 +258,10 @@ export function RequestLogTable() { {log.outputTokens.toLocaleString()} - {log.cacheCreationTokens.toLocaleString()} + {log.cacheReadTokens.toLocaleString()} - {log.cacheReadTokens.toLocaleString()} + {log.cacheCreationTokens.toLocaleString()} ${parseFloat(log.totalCostUsd).toFixed(6)}