-
Notifications
You must be signed in to change notification settings - Fork 712
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
Scale node labels with the node's size. #1773
Conversation
- Within certain bounds. Still have min-label size, mainly effects nodes that get really big. - Set a max size on nodes too, really big ones lose their border.
That is for the base zoom level. Zooming you can decrease/increase still. |
Hint: chrome devtools device-toolbar is handy for testing window sizes. |
This does appear to work. I have no idea how. Hopefully @davkal does. |
This fix prevents the bad label overlaps, great! Two visual issues:
|
Code looks good. |
Was a bit janky there for a bit.
Ready for re-review |
So does this now also fix #1763? |
Yep, issue updated. |
<div className="node-label-wrapper" | ||
style={{pointerEvents: 'all', fontSize, maxWidth: labelWidth}} | ||
style={{pointerEvents: 'all', fontSize, lineHeight: '150%', maxWidth: labelWidth}} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
LGTM |
This issue fixes label truncation (ellipsis) too, but I don't think thats the same issue as #1760 |
What exactly is it fixing? Have you got a before/after screenshot? |
oh ok. I hadn't actually noticed that. What does one have to do to provoke this? I've played with zoom and +/- to no avail. |
Nothing in particular just have nice long container names, its noticeable for me on proud-wind. |
got it. needed to shrink my window vertically to see the problem. |
that get really big.
Fixes #1692
Fixes #1763