Skip to content
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

Add aligned text for tooltips to align multiple lines #1029

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Emirlol
Copy link
Collaborator

@Emirlol Emirlol commented Oct 22, 2024

Yoinked from #786. Improved it to make it simpler to use and added some documentation.

@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label Oct 22, 2024
@Emirlol
Copy link
Collaborator Author

Emirlol commented Oct 22, 2024

Perhaps the aligning point could be set dynamically to waste less space when the elements don't fill up the space as much. The 100 point was set based on the museum text, which can get quite long, but other lines are usually near 80 so there's a big gap between the labels and the values. This would also fix potential issues with lines longer than 100px if any such line gets added in the future.

@Emirlol Emirlol added the new feature This issue or PR is a new feature label Oct 22, 2024
@Emirlol
Copy link
Collaborator Author

Emirlol commented Oct 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This issue or PR is a new feature reviews needed This PR needs reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants