superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Break word on InfoTooltip (#3532)
Date Tue, 26 Sep 2017 23:03:41 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f0636b8  Break word on InfoTooltip (#3532)
f0636b8 is described below

commit f0636b8748195d16e2273ff4e7d914ff2f1d3df9
Author: michellethomas <michelle.q.thomas@gmail.com>
AuthorDate: Tue Sep 26 16:03:39 2017 -0700

    Break word on InfoTooltip (#3532)
    
    * Break word on InfoTooltip
    
    * Moving style object to separate const
---
 superset/assets/javascripts/components/InfoTooltipWithTrigger.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/superset/assets/javascripts/components/InfoTooltipWithTrigger.jsx b/superset/assets/javascripts/components/InfoTooltipWithTrigger.jsx
index 3a097a8..09632cd 100644
--- a/superset/assets/javascripts/components/InfoTooltipWithTrigger.jsx
+++ b/superset/assets/javascripts/components/InfoTooltipWithTrigger.jsx
@@ -21,10 +21,15 @@ const defaultProps = {
 export default function InfoTooltipWithTrigger({
     label, tooltip, icon, className, onClick, placement, bsStyle }) {
   const iconClass = `fa fa-${icon} ${className} ${bsStyle ? 'text-' + bsStyle : ''}`;
+  const tooltipStyle = { wordWrap: 'break-word' };
   return (
     <OverlayTrigger
       placement={placement}
-      overlay={<Tooltip id={`${slugify(label)}-tooltip`}>{tooltip}</Tooltip>}
+      overlay={
+        <Tooltip id={`${slugify(label)}-tooltip`} style={tooltipStyle}>
+          {tooltip}
+        </Tooltip>
+      }
     >
       <i
         className={iconClass}

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message