@@ -1006,24 +1006,6 @@ export default function AccountsPage() {
10061006 const badgeStyle = { background : 'var(--ag-bg-surface)' , border : '1px solid var(--ag-glass-border)' } ;
10071007 const todayImageCount = row . platform === 'openai' ? ( row . today_image_count ?? 0 ) : 0 ;
10081008 const showImageCount = row . platform === 'openai' ;
1009- const accessLabel = showImageCount
1010- ? (
1011- < span className = "inline-flex min-w-0 items-center" >
1012- < span className = "truncate" > { t ( 'accounts.today_access_count' , '访问' ) } </ span >
1013- < span aria-hidden = "true" className = "px-0.5 text-text" > -</ span >
1014- < span > { t ( 'accounts.image_count_inline_label' , '图' ) . trim ( ) } </ span >
1015- </ span >
1016- )
1017- : t ( 'accounts.today_access_count' , '访问' ) ;
1018- const accessValue = showImageCount
1019- ? (
1020- < span className = "inline-flex min-w-0 items-center justify-end" >
1021- < span > { formatCompact ( todayStats ?. requests ?? 0 , false ) } </ span >
1022- < span aria-hidden = "true" className = "px-0.5 text-text" > -</ span >
1023- < span className = "text-text" > { formatCompact ( todayImageCount , false ) } </ span >
1024- </ span >
1025- )
1026- : formatCompact ( todayStats ?. requests ?? 0 , false ) ;
10271009 const todayMetricClass = 'inline-grid h-5 min-w-0 grid-cols-[2.5rem_minmax(0,1fr)] items-center gap-0.5 rounded-[var(--field-radius)] border px-1 text-[11px] leading-none shadow-sm' ;
10281010 const todayMetricStyle = ( color : string , foreground = color ) => ( {
10291011 background : `color-mix(in srgb, ${ color } 10%, transparent)` ,
@@ -1036,18 +1018,24 @@ export default function AccountsPage() {
10361018 className = { todayMetricColumnClass }
10371019 title = { t ( 'accounts.today_stats_tooltip' , '今日账号消耗(本地时区自然日)' ) }
10381020 >
1039- < span
1040- className = { todayMetricClass }
1041- style = { todayMetricStyle ( 'var(--ag-info)' ) }
1042- title = { showImageCount ? t ( 'accounts.image_count_tooltip' , '今日生图请求数(gpt-image 系列)' ) : undefined }
1043- >
1044- < span className = "min-w-0 truncate font-semibold text-text-secondary" > { accessLabel } </ span >
1045- < span className = "min-w-0 justify-self-end text-right font-semibold tabular-nums" > { accessValue } </ span >
1021+ < span className = { todayMetricClass } style = { todayMetricStyle ( 'var(--ag-info)' ) } >
1022+ < span className = "min-w-0 truncate font-semibold text-text-secondary" > { t ( 'accounts.today_access_count' , '访问' ) } </ span >
1023+ < span className = "min-w-0 justify-self-end text-right font-semibold tabular-nums" > { formatCompact ( todayStats . requests , false ) } </ span >
10461024 </ span >
10471025 < span className = { todayMetricClass } style = { todayMetricStyle ( 'var(--ag-primary)' ) } >
10481026 < span className = "truncate font-semibold text-text-secondary" > Token</ span >
10491027 < span className = "text-right font-semibold tabular-nums" > { formatCompact ( todayStats . tokens ) } </ span >
10501028 </ span >
1029+ { showImageCount && (
1030+ < span
1031+ className = { todayMetricClass }
1032+ style = { todayMetricStyle ( 'var(--ag-info)' ) }
1033+ title = { t ( 'accounts.image_count_tooltip' , '今日生图请求数(gpt-image 系列)' ) }
1034+ >
1035+ < span className = "min-w-0 truncate font-semibold text-text-secondary" > { t ( 'accounts.image_count_inline_label' , '生图' ) } </ span >
1036+ < span className = "min-w-0 justify-self-end text-right font-semibold tabular-nums" > { formatCompact ( todayImageCount , false ) } </ span >
1037+ </ span >
1038+ ) }
10511039 < span
10521040 className = { todayMetricClass }
10531041 style = { todayMetricStyle ( 'var(--ag-warning)' ) }
0 commit comments