Open
Conversation
Signed-off-by: Roy Natian <hi@roy.wtf>
Author
|
I just realized this needs to be tested with multiple providers. I only tried it to see my Claude stats. |
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.
Fixes inconsistent padding throughout the CodexBar menu popup.
Changes
Before:


After:
Summary
This PR fixes inconsistent padding and spacing throughout the CodexBar menu popup.
Changes Made
Header Section Padding
✅ Increase top/bottom padding so the highlighted provider header has proper breathing room
✅ Move divider out of the header view into a separate menu separator
✅ Remove showDivider parameter from UsageMenuCardHeaderSectionView
These changes fix:
Card Section Spacing
✅ Unify all card sections to consistent padding values (8pt top, 6pt bottom)
✅ Remove conditional 4/6pt bottom padding logic
✅ Fix double separators when both credits and extra usage sections are present
Problem: Sections used different padding values depending on which other sections were visible, and a logic error added two consecutive separators when
credits + extra usage were both present.
Solution: Each section now uses the same sectionSpacing and sectionPadding values, and each section adds exactly one separator before itself.
Action Item Section Spacing
✅ Add spacers above and below each action group to match card section spacing
✅ Consolidate separator ownership so each section manages its own leading separator
Problem: The action item groups (Add Account...Status Page, Settings...Quit) had tighter padding than the card sections above them, and relied on trailing separators from previous sections.
Solution: Added 4px spacers above and below each action group for symmetric padding around divider lines.
Testing
Files Modified
Impact