Skip to content

[Bug Fix] Constrain Tooltip content width#384

Merged
djalmaaraujo merged 2 commits intomainfrom
da/issue-180-tooltip-wrap
May 8, 2026
Merged

[Bug Fix] Constrain Tooltip content width#384
djalmaaraujo merged 2 commits intomainfrom
da/issue-180-tooltip-wrap

Conversation

@djalmaaraujo
Copy link
Copy Markdown
Contributor

Summary

  • Replace TooltipContent w-max sizing with w-fit plus a viewport max width
  • Add text balancing and word breaking so long tooltip text wraps instead of overflowing the screen
  • Add regression coverage for the wrapping classes

Closes #180

Testing

  • docker run --rm -v ruby_ui_bundle:/usr/local/bundle -v /Users/djalmaaraujo/dev/linkana/ruby_ui-issue-180:/workspace -w /workspace/gem ruby:3.4.7 bash -lc 'bundle install && bundle exec rake test TEST=test/ruby_ui/tooltip_test.rb'

@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner May 7, 2026 13:24
@djalmaaraujo djalmaaraujo merged commit fce2657 into main May 8, 2026
4 checks passed
@djalmaaraujo djalmaaraujo deleted the da/issue-180-tooltip-wrap branch May 8, 2026 18:39
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.

Tooltip is not respecting the screen limit

2 participants