Skip to content

Commit

Permalink
Fix embedded logo size
Browse files Browse the repository at this point in the history
* CSS transform is ignored in Safari, using SVG transform instead

Fixes #1071
  • Loading branch information
davkal committed Mar 1, 2016
1 parent 3e611f8 commit 833b78c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 3 additions & 1 deletion client/app/scripts/charts/nodes-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ export default class NodesChart extends React.Component {
{errorEmpty}
{errorMaxNodesExceeded}
<svg width="100%" height="100%" id="nodes-chart-canvas" className={svgClassNames} onClick={this.handleMouseClick}>
<Logo/>
<g transform="translate(24,24) scale(0.25)">
<Logo/>
</g>
<g className="canvas" transform={transform}>
<g className="edges">
{edgeElements}
Expand Down
13 changes: 6 additions & 7 deletions client/app/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ h2 {
height: 80px;
z-index: 20;
display: flex;

.logo {
margin: -8px 0 0 64px;
height: 64px;
width: 250px;
}
}

.footer {
Expand Down Expand Up @@ -206,12 +212,6 @@ h2 {
}
}

.logo {
margin: -8px 0 0 64px;
height: 64px;
width: 250px;
}

.topologies {
margin: 4px 0 0 128px;
display: flex;
Expand Down Expand Up @@ -297,7 +297,6 @@ h2 {
svg.exported {
.logo {
display: inline;
transform: translate(24px, 24px) scale(0.25);
}
}

Expand Down

0 comments on commit 833b78c

Please sign in to comment.