Skip to content

fix(theme): widen usage_line text boxes to stop ellipsis truncation - #197

Open
arshcaria wants to merge 1 commit into
CodeZeno:mainfrom
arshcaria:fix/theme-usage-line-truncation
Open

arshcaria wants to merge 1 commit into
CodeZeno:mainfrom
arshcaria:fix/theme-usage-line-truncation

Conversation

@arshcaria

Copy link
Copy Markdown
Contributor

Summary

Built-in theme value columns were fixed at 62px, so GDI's DT_END_ELLIPSIS clipped longer usage_line strings. A two-digit percentage combined with a minute-level reset (e.g. 12% · 59m) rendered as 12% · 59..., which looked like missing Claude usage data.

Changes

  • Widen per-provider usage text boxes 62px → 80px and Fable labels 90px → 110px in classic-usage-widget.json and compact-fluent-quad.json
  • Grow the surface width formulas to match so the extra column width is not clipped
  • Update the theme geometry assertions in src/theme_engine/tests.rs
  • Add builtin_usage_text_boxes_fit_full_usage_lines as a regression test that keeps usage text boxes wide enough

Verification

cargo test --bin claude-code-usage-monitor — 603 passed, 0 failed

@CodeZeno

Copy link
Copy Markdown
Owner

Was unable to replicate this. Can you please provide screenshot to help diagnose?
Also windows version and DPI scale?

@arshcaria

Copy link
Copy Markdown
Contributor Author

Was unable to replicate this. Can you please provide screenshot to help diagnose? Also windows version and DPI scale?

5120 x 2160 @ 150% scale, Windows 11 26h2

image

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.

2 participants