The best way to control Claude Code, Codex and more from any computer or phone
fix(web): align usage table padding and thread status rows
Add 8 px edge padding to usage breakdown tables shared by Cost and Tokens. Align thread status text and actions to a common baseline while keeping icons centered. Validated with check:changed, CI, usage-table before/after browser captures, and actual ThreadNow component captures at 100% and 91% CSS zoom. No behavior or calculation changes. Model: GPT 6.1 Sol. Harness: Codex in T3 Code.
Yash Singh committed
Nov 3, 2026 at 22:46 UTC
3368dd70f20cb192b68895494a4a73455524fb76
2 files changed
+11
-11
apps/web/src/components/chat/ThreadNow.tsx
+3
-3
@@ -36,10 +36,10 @@ function ThreadNowLine({
36
return (
37
<div
38
role={announce ? "alert" : undefined}
39
- className={lineClassName}
39
+ className={cn(lineClassName, "items-baseline")}
40
data-thread-now-line="true"
41
>
42
- <span aria-hidden className="flex size-3.5 shrink-0 items-center justify-center">
42
+ <span aria-hidden className="flex size-3.5 shrink-0 self-center items-center justify-center">
43
{item.icon}
44
</span>
45
{/* Title and detail read as one line that gives way before the actions, so Stop stays
@@ -61,7 +61,7 @@ function ThreadNowLine({
61
) : null}
62
</NoticeText>
63
{item.actions ? (
64
- <span className="ms-1.5 flex shrink-0 items-center gap-2.5">{item.actions}</span>
64
+ <span className="ms-1.5 flex shrink-0 items-baseline gap-2.5">{item.actions}</span>
65
) : null}
66
</div>
67
);
apps/web/src/components/usage/UsagePage.tsx
+8
-8
@@ -920,11 +920,11 @@ function UsageOverview({
920
<table className="w-full text-sm">
921
<thead>
922
<tr className="border-b border-border text-right text-xs text-muted-foreground">
923
- <th className="py-2 pr-3 text-left font-normal">#</th>
923
+ <th className="py-2 pr-3 pl-2 text-left font-normal">#</th>
924
<th className="w-full py-2 text-left font-normal">Model</th>
925
<th className="py-2 pl-6 font-normal">Cost</th>
926
<th className="hidden py-2 pl-6 font-normal sm:table-cell">Share</th>
927
- <th className="py-2 pl-6 font-normal">Tokens</th>
927
+ <th className="py-2 pr-2 pl-6 font-normal">Tokens</th>
928
</tr>
929
</thead>
930
<tbody>
@@ -946,7 +946,7 @@ function UsageOverview({
946
key={key}
947
className="relative border-b border-border/50 text-right whitespace-nowrap text-muted-foreground tabular-nums transition-colors hover:bg-muted/50 has-focus-visible:bg-muted/50"
948
>
949
- <td className="py-2.5 pr-3 text-left text-xs">{index + 1}</td>
949
+ <td className="py-2.5 pr-3 pl-2 text-left text-xs">{index + 1}</td>
950
<td className="py-2.5 text-left whitespace-normal">
951
<button
952
type="button"
@@ -981,7 +981,7 @@ function UsageOverview({
981
<td className={cn("hidden py-2.5 pl-6 sm:table-cell", rowFigures)}>
982
{share === null ? "" : formatPercent(share)}
983
</td>
984
- <td className={cn("py-2.5 pl-6", rowFigures)}>
984
+ <td className={cn("py-2.5 pr-2 pl-6", rowFigures)}>
985
{formatTokens(model.totalTokens)}
986
</td>
987
</tr>
@@ -1003,14 +1003,14 @@ function UsageOverview({
1003
</colgroup>
1004
<thead>
1005
<tr className="border-b border-border text-left text-xs text-muted-foreground">
1006
- <th className="py-2 font-normal">{shownHourly ? "Hour" : "Day"}</th>
1006
+ <th className="py-2 pl-2 font-normal">{shownHourly ? "Hour" : "Day"}</th>
1007
{activeProviders.map((provider) => (
1008
<th key={provider} className="py-2 pl-4 text-right font-normal">
1009
{PROVIDER_PRESENTATION[provider].label}
1010
</th>
1011
))}
1012
<th className="py-2 pl-4 text-right font-normal">Total</th>
1013
- <th className="py-2 pl-4 text-right font-normal">Tokens</th>
1013
+ <th className="py-2 pr-2 pl-4 text-right font-normal">Tokens</th>
1014
</tr>
1015
</thead>
1016
<tbody>
@@ -1029,7 +1029,7 @@ function UsageOverview({
1029
key={"hourStart" in period ? period.hourStart : period.day}
1030
className="border-b border-border/50 transition-colors hover:bg-muted/50"
1031
>
1032
- <td className="py-2 text-foreground">
1032
+ <td className="py-2 pl-2 text-foreground">
1033
{"hourStart" in period
1034
? formatHourShort(period.hourStart, shownWindow.timeZone, hour12)
1035
: formatDayShort(period.day)}
@@ -1055,7 +1055,7 @@ function UsageOverview({
1055
</td>
1056
<td
1057
className={cn(
1058
- "py-2 pl-4 text-right text-muted-foreground tabular-nums",
1058
+ "py-2 pr-2 pl-4 text-right text-muted-foreground tabular-nums",
1059
figureClass(loadingPartial),
1060
)}
1061
>