changed topo max nodes text, fade in topo

This commit is contained in:
David Kaltschmidt
2015-09-16 15:39:53 +02:00
parent 7f4673ae4b
commit 74840169a5
2 changed files with 4 additions and 2 deletions

View File

@@ -162,14 +162,15 @@ const NodesChart = React.createClass({
wasShifted = true;
}
const errorClassNames = this.state.maxNodesExceeded ? 'nodes-chart-error' : 'nodes-chart-error hide';
const svgClassNames = this.state.maxNodesExceeded || _.size(nodeElements) === 0 ? 'hide' : '';
return (
<div className="nodes-chart">
<div className={errorClassNames}>
<span className="nodes-chart-error-icon fa fa-ban" />
<div>Too many nodes to show in the browser.<br />Please select a different topology.</div>
<div>Too many nodes to show in the browser.<br />We're working on it, but for now, try a different topology?</div>
</div>
<svg width="100%" height="100%">
<svg width="100%" height="100%" className={svgClassNames}>
<Spring endValue={{val: translate, config: [80, 20]}}>
{function(interpolated) {
let interpolatedTranslate = wasShifted ? interpolated.val : panTranslate;

View File

@@ -200,6 +200,7 @@ h2 {
}
svg {
.hideable;
position: absolute;
top: 0px;
}