@@ -15,7 +15,7 @@ import { useEffect, useState } from "react";
1515
1616import { cn } from "../../lib/utils" ;
1717import { useAccountLimits } from "../../state/accountLimits" ;
18- import { formatAgo , formatResetAt , formatResetIn } from "../../usage/limitsFormat" ;
18+ import { formatAgo , formatResetAt } from "../../usage/limitsFormat" ;
1919import { PROVIDER_COLOR , PROVIDER_LABEL , PROVIDER_MARK , PROVIDER_ORDER } from "./usageProviders" ;
2020
2121/** Age past which a snapshot stops being "current" and earns a caption. */
@@ -103,13 +103,13 @@ export function AccountLimitsHoverCard() {
103103 < LimitMeter window = { window } color = { PROVIDER_COLOR [ provider ] } />
104104 < span
105105 className = { cn (
106- "w-15 shrink-0 text-right text-[11px] tabular-nums text-foreground" ,
106+ "shrink-0 whitespace-nowrap text-right text-[11px] tabular-nums text-foreground" ,
107107 usageTone ( window . usedPercent ) ,
108108 ) }
109109 >
110110 { Math . round ( window . usedPercent ) } % used
111111 </ span >
112- < span className = "w-13 shrink-0 text-right text-[10px] tabular-nums text-muted-foreground" >
112+ < span className = "shrink-0 whitespace-nowrap text-right text-[10px] tabular-nums text-muted-foreground" >
113113 { formatResetAt ( window . resetsAt , nowMs ) ?? "" }
114114 </ span >
115115 </ div >
@@ -158,7 +158,6 @@ export function AccountLimitsSection() {
158158 ) : (
159159 snapshot . windows . map ( ( window ) => {
160160 const resetAt = formatResetAt ( window . resetsAt , nowMs ) ;
161- const resetIn = formatResetIn ( window . resetsAt , nowMs ) ;
162161 return (
163162 < div key = { window . id } className = "flex items-center gap-3" >
164163 < span className = "w-10 shrink-0 text-xs text-muted-foreground" >
@@ -167,16 +166,14 @@ export function AccountLimitsSection() {
167166 < LimitMeter window = { window } color = { PROVIDER_COLOR [ provider ] } />
168167 < span
169168 className = { cn (
170- "w-18 shrink-0 text-right text-xs font-medium tabular-nums text-foreground" ,
169+ "shrink-0 whitespace-nowrap text-right text-xs font-medium tabular-nums text-foreground" ,
171170 usageTone ( window . usedPercent ) ,
172171 ) }
173172 >
174173 { Math . round ( window . usedPercent ) } % used
175174 </ span >
176- < span className = "w-32 shrink-0 text-right text-xs tabular-nums text-muted-foreground" >
177- { resetAt === null
178- ? ""
179- : `resets ${ resetAt } ${ resetIn === null ? "" : ` · ${ resetIn } ` } ` }
175+ < span className = "shrink-0 whitespace-nowrap text-right text-xs tabular-nums text-muted-foreground" >
176+ { resetAt === null ? "" : `resets ${ resetAt } ` }
180177 </ span >
181178 </ div >
182179 ) ;
0 commit comments