Skip to content

Commit

Permalink
Break words in panels to fit to space. Fixes #225.
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrb committed Feb 27, 2017
1 parent dac2cdc commit f098d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/tree/infoPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const InfoPanel = ({tree, hovered, responsive, viewer}) => {
color: infoPanelStyles.panel.color,
backgroundColor: infoPanelStyles.panel.backgroundColor,
wordWrap: "break-word",
wordBreak: "break-word"
}
};
if (pos.x<viewerState.viewerWidth*0.7){
Expand Down
6 changes: 4 additions & 2 deletions src/components/tree/tipSelectedPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const TipSelectedPanel = ({tip, goAwayCallback}) => {
/* FLEXBOX */
display: "flex",
justifyContent: "center",
alignItems: "center"
alignItems: "center",
wordWrap: "break-word",
wordBreak: "break-word"
}
};

Expand All @@ -35,7 +37,7 @@ const TipSelectedPanel = ({tip, goAwayCallback}) => {
<table>
<tbody>
<tr>
<th>Region</th>
<th width={130}>Region</th>
<td>{prettyString(tip.n.attr.region)}</td>
</tr>
<tr>
Expand Down

0 comments on commit f098d19

Please sign in to comment.