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.
After using #11358 for a bit, I was quickly annoyed with the unnecessarily wide tooltip when client names are relatively short. This PR creates a
Tooltip
component that ellipsizes the tooltip text content in the middle, keeping it short enough to fit into a single-line tooltip.Before:
After:
Ellipsizing in the middle allow users to glance at the beginning and end of text. This is important for client names since they are often prefixed and indexed in a standard format. Cutting off the end of the string would make impossible to distinguish between
nomad-client-with-long-name-1
andnomad-client-with-long-name-2
.Using
multiline
was also not helpful in the case where client names had no spaces.The value used as a threshold to decide if the text must be ellipsized is fairly arbitrary and can be adjusted based on user feedback.
No changelog since this fixes an unreleased feature.