fix(chart): center the progress ring so the card isn't mostly empty#26
Merged
Conversation
The Progress chart placed a small ring in a left-aligned Row with an optional label. Models put the descriptor in the chart `title` (rendered above) rather than `label`, so the Row held just the ring pinned left — leaving ~70% of the full-width card blank and reading as an incomplete/empty bubble. Center the ring (and label, when present) in the card and enlarge it 96→112dp, matching the donut's visual weight. Donut/bar/line already fill the width. Verified on-device (Realme CPH2723, release): the 72% "Project Completion" ring now sits centered with balanced margins. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Why
The Progress chart rendered a small ring in a left-aligned
Rowwith an optional label. Models put the descriptor in the charttitle(already rendered above the chart), notlabel, so the Row held only the ring pinned to the left — leaving ~70% of the full-width card blank. It read as an incomplete / empty bubble.Fix
Center the ring (and the label, when present) in the card and enlarge it 96→112dp to match the donut's visual weight. Donut/bar/line already fill the card width.
Verified on-device
Realme CPH2723, release: the 72% "Project Completion" ring now sits centered with balanced margins.
🤖 Generated with Claude Code