-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent graph lines from showing up behind legend #1683
Conversation
b1bc513
to
bb46448
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1683 +/- ##
===========================================
- Coverage 54.08% 42.21% -11.87%
===========================================
Files 111 111
Lines 17441 17445 +4
===========================================
- Hits 9433 7365 -2068
- Misses 8008 10080 +2072
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a small change to use cell_mut
instead, but otherwise LGTM. Thanks for catching this and fixing it (and sorry for the delay in reviewing)!
@all-contributors please add @mtoohey31 for code |
I've put up a pull request to add @mtoohey31! 🎉 |
Description
Currently, when some entries in a graph's legend are shorter than others, it's possible for the graph lines to show up through the legend. This can be seen in the following screenshot:
This pull request fixes the issue. In terms of how the fix is actually implemented, I'm not that familiar with ratatui so lmk if there's a better way to ensure the legend is fully opaque.
Issue
N/A
Testing
I visually examined the graphs to confirm that the bug no longer appears.
If this is a code change, please also indicate which platforms were tested:
Checklist
If relevant, ensure the following have been met:
cargo fmt
)README.md
, help menu, doc pages, etc.)