Skip to content

Commit

Permalink
fix #3430 (#3431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored and mistercrunch committed Sep 12, 2017
1 parent 2d6b942 commit 8223729
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
15 changes: 7 additions & 8 deletions superset/assets/javascripts/SqlLab/components/QuerySearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class QuerySearch extends React.PureComponent {
placeholder="Search Results"
/>
</div>
<div className="col-sm-1">
<div className="col-sm-4 search-date-filter-container">
<Select
name="select-from"
placeholder="[From]-"
Expand All @@ -163,8 +163,7 @@ class QuerySearch extends React.PureComponent {
autosize={false}
onChange={this.changeFrom.bind(this)}
/>
</div>
<div className="col-sm-1">

<Select
name="select-to"
placeholder="[To]-"
Expand All @@ -173,8 +172,7 @@ class QuerySearch extends React.PureComponent {
autosize={false}
onChange={this.changeTo.bind(this)}
/>
</div>
<div className="col-sm-1">

<Select
name="select-status"
placeholder="[Query Status]"
Expand All @@ -184,10 +182,11 @@ class QuerySearch extends React.PureComponent {
autosize={false}
onChange={this.changeStatus.bind(this)}
/>

<Button bsSize="small" bsStyle="success" onClick={this.refreshQueries.bind(this)}>
Search
</Button>
</div>
<Button bsSize="small" bsStyle="success" onClick={this.refreshQueries.bind(this)}>
Search
</Button>
</div>
{this.state.queriesLoading ?
(<img className="loading" alt="Loading..." src="/static/assets/images/loading.gif" />)
Expand Down
7 changes: 7 additions & 0 deletions superset/assets/javascripts/SqlLab/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,10 @@ a.Link {
.SouthPane {
margin-top: 10px;
}
.search-date-filter-container {
display: flex;

.Select {
margin-right: 3px;
}
}
4 changes: 4 additions & 0 deletions superset/assets/javascripts/explore/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
box-shadow: none;
}

.control-panel-section .Select-multi-value-wrapper .Select-input > input {
width: 100px;
}

.background-transparent {
background-color: transparent !important;
}
Expand Down
21 changes: 15 additions & 6 deletions superset/assets/stylesheets/superset.less
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,22 @@ iframe {
}

// overwrite react-select css
.Select-multi-value-wrapper .Select-input {
display: inline-block;
width: 100px;
}
.Select--multi .Select-value {
line-height: 1.2;
.Select--multi {
.Select-multi-value-wrapper {
display: flex;
flex-wrap: wrap;
padding-bottom: 3px;
}

.Select-value {
line-height: 1.2;
}

.Select-input > input {
width: 100px;
}
}

.dimmed {
opacity: 0.5;
}
Expand Down

0 comments on commit 8223729

Please sign in to comment.