Skip to content

Commit

Permalink
[explore] remove grey background in standalone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 28, 2017
1 parent a58194b commit d34e93b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ class ChartContainer extends React.PureComponent {

render() {
if (this.props.standalone) {
// dom manipulation hack to get rid of the boostrap theme's body background
$('body').addClass('no-background');
return this.renderChart();
}
const queryResponse = this.props.queryResponse;
Expand Down
4 changes: 4 additions & 0 deletions superset/assets/javascripts/explorev2/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@
margin-bottom: 0px;
box-shadow: none;
}

.no-background {
background: none !important;
}

0 comments on commit d34e93b

Please sign in to comment.