style: compact token usage text lines#211
Merged
Merged
Conversation
Collaborator
Author
|
Just a little UI polishing 💅 |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR compacts the token usage text rows (Today, Yesterday, Last 30 Days) by reducing font sizes and spacing. The changes group consecutive text-type metric lines together with tighter spacing (4px) while maintaining the standard spacing (16px) between other line types.
Changes:
- Added
groupLinesByType()function to group consecutive text lines - Reduced text line font size from
text-smtotext-xsand height from 22px to 18px - Reduced subtitle font size from
text-xstotext-[10px] - Wrapped grouped text lines in
space-y-1container for 4px gap
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f022539 to
dc765cc
Compare
robinebers
approved these changes
Feb 23, 2026
Owner
robinebers
left a comment
There was a problem hiding this comment.
I like the output, but I am not sure if this is the best way to do it. I think in the near future maybe we can have something like usage stats or tokens stats export for the plugins, but merging this for now because it looks much nicer than what we have. Thanks a lot!
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Tightens up the Today / Yesterday / Last 30 Days token usage rows:
text-xsinstead oftext-sm)18pxinstead of22px)4pxgap instead of the16pxgap used between progress barsScreenshots
Before
After
Summary by cubic
Compacts Today/Yesterday/Last 30 Days rows to show more with less vertical space. Text is text-xs with 18px row height and 10px subtitles; consecutive text lines use a 4px gap while others keep standard spacing, with tests for the grouping.
Written for commit dc765cc. Summary will update on new commits.