Skip to content

[Bug Fix] Constrain Tooltip content width#384

Open
djalmaaraujo wants to merge 1 commit intomainfrom
da/issue-180-tooltip-wrap
Open

[Bug Fix] Constrain Tooltip content width#384
djalmaaraujo wants to merge 1 commit 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
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

1 participant