You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/09/26 18:21:55 UTC

[GitHub] michellethomas opened a new pull request #3532: Break word on InfoTooltip

michellethomas opened a new pull request #3532: Break word on InfoTooltip
URL: https://github.com/apache/incubator-superset/pull/3532
 
 
   Someone on slack mentioned that the text was getting cut off for the expression tooltip. Because it's one long string with no word breaks, the expression text gets cut off. I'm proposing adding `wordWrap: 'break-word'` to the InfoTooltipWithTrigger so that the text will wrap.
   
   If you don't think this should be the default behavior for all tooltips, I can change it to pass the styles in.
   
   It [looks like](https://github.com/twbs/bootstrap/issues/19315) there's no bootstrap class for `break-word`. If there's a better way to add specific styles in, let me know.
   
   Before:
   ![image](https://user-images.githubusercontent.com/817955/30876079-5d35254e-a2aa-11e7-98e8-965f9b543d99.png)
   After:
   ![image](https://user-images.githubusercontent.com/817955/30876086-65e7603a-a2aa-11e7-8f9a-10bd89924605.png)
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services