{{ message }}
fix(site/src/pages/AIBridgePage): align token badges with neighboring badge sizing - #28477
Merged
Merged
Conversation
jakehwll
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The in/out token pills on the AI Gateway sessions pages looked out of place next to the provider/client/model badges: they used
Badge size="sm"while their neighbors use the defaultmd, and their arrow icons weresize-icon-lg(24px) — taller than the badge itself, inflating the pill height.Note
The underlying font-size problem (
Badge sm= 10pxtext-2xs) is fixed globally in #28517. This PR handles what that one doesn't: the token pills' size variant, icon sizing, and API cleanup.Changes
mdsize, matching the provider/client/model badges next to them.size-icon-lg(24px) tosize-icon-xs(14px), the same icon size the neighboring badges use, withgap-0.5between icon and count.sizeprop fromTokenBadges— no call site ever passed one — and dropped the now-meaninglessSizeXs/SizeMdstories.Affects every
TokenBadgesconsumer: the sessions list, the session summary card, and the timeline prompt/tool-call tables.