Skip to content

fix(dashboard): one line per model in the earnings breakdown - #141

Merged
flyworker merged 1 commit into
mainfrom
fix/earnings-row-density
Sep 7, 2026
Merged

flyworker merged 1 commit into
mainfrom
fix/earnings-row-density

Conversation

@flyworker

Copy link
Copy Markdown
Member

Follow-up to #140, from the same panel.

Rows were double height

Each model row measured 32px — two lines. The token column is a fixed w-28
(112px) while its content, 1.96M in / 94.4k out at 12px, is wider, so it
wrapped inside its own column and doubled every row. Six models took twelve
lines.

Measured on the live dashboard, before:

WRAPPED   32px  Qwen/Qwen3.8-27B | $0.0556 | 1.96M in / 94.4k out
WRAPPED   32px  openai/gpt-5.6-sol | $0.00242 | 82.1k in / 11.9k out

after:

ONE LINE  16px  Qwen/Qwen3.8-27B | $0.0556 | 1.96M in / 94.4k out
ONE LINE  16px  openai/gpt-5.6-sol | $0.00255 | 82.7k in / 11.9k out

The column is now wide enough for its content and whitespace-nowrap, so it
cannot silently re-wrap if a figure gains a digit; rows are 11px.

Stale label

Latest interval was correct while the panel defaulted to the newest bucket.
#140 changed the default to the whole window and left the label, so it sat
beside a heading reading 24 hours and contradicted it. Removed.

Each model row rendered 32px tall — two lines. The token column is a fixed
w-28 (112px) but its own content, "1.96M in / 94.4k out" at 12px, is wider than
that, so the text wrapped inside the column and doubled the height of every row.
Six models therefore took twelve lines.

The column is now wide enough for its content and marked whitespace-nowrap so it
cannot wrap again if the numbers grow a digit, and the rows are set to 11px.
Rows measure 16px each.

Also drops the "Latest interval" label. It was correct when the panel defaulted
to the newest bucket and became wrong when it started summarising the window —
it sat next to a heading reading "24 hours", contradicting it.
@flyworker
flyworker merged commit 8ab3702 into main Sep 7, 2026
1 check passed
@flyworker
flyworker deleted the fix/earnings-row-density branch September 7, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant