Skip to content

Commit

Permalink
truncate container names
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Saada committed Jan 1, 2017
1 parent 885f2fc commit eeed41c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified public/images/colored-particles.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/HexGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ export default class HexGrid extends Component {
}
const container = this.props.containers[key]
const networkSide = this.getHighlightClass(container)
const splitColon = container.Image.split(':')[0]
const splitSlash = splitColon.split('/')
const name = splitSlash[splitSlash.length - 1]
return (
<Motion key={key} style={style}>
{({translateX, translateY, scale, boxShadow}) =>
Expand All @@ -228,7 +231,7 @@ export default class HexGrid extends Component {
boxShadow: `${boxShadow}px 5px 5px rgba(0,0,0,0.5)`
}}
>
{container.Image}
{name}
</div>}
</Motion>
)
Expand Down

0 comments on commit eeed41c

Please sign in to comment.