Skip to content

fix(usage): widen SVG usage monitor card for better readability - #96

Merged
ltmoerdani merged 1 commit into
mainfrom
fix/issue-85-usage-monitor-ui-width
Aug 2, 2026
Merged

fix(usage): widen SVG usage monitor card for better readability#96
ltmoerdani merged 1 commit into
mainfrom
fix/issue-85-usage-monitor-ui-width

Conversation

@ltmoerdani

Copy link
Copy Markdown
Owner

Summary

Widen the usage monitor SVG card from 330px to 420px (440px with session data) and adjust all column positions proportionally to fix the cramped layout that made values hard to read.

Problem

The usage monitor SVG card (shown in status bar tooltip and webview panel) was too narrow at 330px/345px, causing the bottom statistics section to cram 6 values (label + cost + Requests: + count + Tokens: + count) per line with gaps as small as 33px — making costs, request counts, and token counts hard to read.

Changes

Element Before After
SVG width (no session) 330px 420px
SVG width (with session) 345px 440px
Progress bar width 256px 340px
Column spacing (min) 33px 40px
Column spacing (typical) 64px 80px
Tooltip img width 330px 420px
Webview max-width 480px 560px

Files Changed

  • src/extension.tsbuildUsageTooltipSvg(), updateWebviewContent(), buildUsageTooltip()
  • CHANGELOG.md — Added entry under [0.4.4]
  • docs/issues/25-20260803-usage-monitor-ui-width-fix.md — New documentation

Verification

  • npm run compile passes
  • No TypeScript errors
  • Documentation created

fixes #85

The usage monitor SVG card was 330px wide (345px with session data),
causing the bottom statistics section to cram 6 values per line with
gaps as small as 33px — making costs, request counts, and token counts
hard to read.

Widened the card to 420px (440px with session) and adjusted all column
positions proportionally: progress bar width 256→340px, column spacing
minimum 33→40px with most gaps at 80px. Tooltip image width updated to
420px, webview max-width to 560px.

fixes #85
@ltmoerdani
ltmoerdani merged commit c1a6dc6 into main Aug 2, 2026
2 checks passed
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.

[BUG] Little UI hell in usage monitor :)

1 participant