fix(web): align the API estimate info icon (#15655)

This commit is contained in:
Rakshith Bhat authored and GitHub committed 2026-10-11 01:48:22 -05:00
1 parent 5310a4a64f
commit 78089500e4
1 file changed
+20 -26
+20 -26
View File
@@ -587,33 +587,27 @@ export function UsagePage() {
? formatUsd(merged.costUsd)
: formatTokens(merged.totalTokens)}
</span>
<span className="text-xs text-muted-foreground">
<span className={figureClass(loading.partial)}>
{formatCount(merged.sessions)} sessions
<span className="inline-flex items-center gap-1 text-xs text-muted-foreground">
<span>
<span className={figureClass(loading.partial)}>
{formatCount(merged.sessions)} sessions
</span>
{metric === "cost" && " · API estimate"}
</span>
{metric === "cost" && (
<>
{" · API estimate"}
{merged.costQuality.unpricedShare > 0 && (
<>
{" "}
<Popover>
<PopoverTrigger
openOnHover
render={<InlineButton tone="muted" />}
aria-label="Unpriced usage details"
>
<InfoIcon className="size-3" aria-hidden />
</PopoverTrigger>
<PopoverPopup side="top" tooltipStyle>
API estimate excludes{" "}
{formatPercent(merged.costQuality.unpricedShare)} unpriced
records.
</PopoverPopup>
</Popover>
</>
)}
</>
{metric === "cost" && merged.costQuality.unpricedShare > 0 && (
<Popover>
<PopoverTrigger
openOnHover
render={<InlineButton tone="muted" />}
aria-label="Unpriced usage details"
>
<InfoIcon className="size-3" aria-hidden />
</PopoverTrigger>
<PopoverPopup side="top" tooltipStyle>
API estimate excludes{" "}
{formatPercent(merged.costQuality.unpricedShare)} unpriced records.
</PopoverPopup>
</Popover>
)}
</span>
</div>