Skip to content

Prevent overflowing of bars in tooltip renderers#66

Merged
MalTeeez merged 4 commits into
masterfrom
mal/cap-bar-length
May 11, 2026
Merged

Prevent overflowing of bars in tooltip renderers#66
MalTeeez merged 4 commits into
masterfrom
mal/cap-bar-length

Conversation

@MalTeeez

Copy link
Copy Markdown
Member

Prevents bars going out of the waila bounds, if for some weird reason the amount is bigger than the capacity, such as this case: https://discord.com/channels/181078474394566657/522098956491030558/1502992908045778976 - image for that:

image

@tiffit tiffit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should modify the displayed maximum as it is just hiding the actual information which can make testing/debugging more difficult. It would be better to just clamp the width of the bar to [0, 1] to fix bar going out of bounds

@github-actions

Copy link
Copy Markdown
Contributor

#67

Co-authored-by: GitHub GTNH Actions <>
@Dream-Master Dream-Master requested a review from tiffit May 11, 2026 10:33
@MalTeeez MalTeeez merged commit ef0f8b5 into master May 11, 2026
1 check passed
@MalTeeez MalTeeez deleted the mal/cap-bar-length branch May 11, 2026 16:50
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