Skip to content

Commit

Permalink
[explore-v2] make control panel sections and fields more dense (#1954)
Browse files Browse the repository at this point in the history
* make control panel sections and fields more dense

* remove Panel

* use <Panel> with className prop
  • Loading branch information
Alanna Scott authored Jan 12, 2017
1 parent 9c6a579 commit fc74fbe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export default class ControlPanelSection extends React.Component {

render() {
return (
<Panel header={this.renderHeader()}>
<Panel
className="control-panel-section"
header={this.renderHeader()}
>
{this.props.children}
</Panel>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const propTypes = {
function FieldSetRow(props) {
const colSize = NUM_COLUMNS / props.fields.length;
return (
<div className="row space-2">
<div className="row space-1">
{props.fields.map((field, i) => (
<div className={`col-lg-${colSize} col-xs-12`} key={i} >
{field}
Expand Down
5 changes: 5 additions & 0 deletions superset/assets/javascripts/explorev2/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@
margin-top: 0px;
margin-right: 3px;
}

.control-panel-section {
margin-bottom: 0px;
box-shadow: none;
}

0 comments on commit fc74fbe

Please sign in to comment.