Skip to content

Commit

Permalink
Make QueryTable scrollable in Query Search page (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu authored Nov 22, 2016
1 parent 6825e75 commit 10982de
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions superset/assets/javascripts/SqlLab/components/QuerySearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,22 @@ class QuerySearch extends React.PureComponent {
{this.state.queriesLoading ?
(<img className="loading" alt="Loading..." src="/static/assets/images/loading.gif" />)
:
(<QueryTable
columns={[
'state', 'db', 'user', 'date',
'progress', 'rows', 'sql', 'querylink',
]}
onUserClicked={this.onUserClicked.bind(this)}
onDbClicked={this.onDbClicked.bind(this)}
queries={this.state.queriesArray}
actions={this.props.actions}
/>)
(
<div className="scrollbar-container">
<div className="scrollbar-content">
<QueryTable
columns={[
'state', 'db', 'user', 'date',
'progress', 'rows', 'sql', 'querylink',
]}
onUserClicked={this.onUserClicked.bind(this)}
onDbClicked={this.onDbClicked.bind(this)}
queries={this.state.queriesArray}
actions={this.props.actions}
/>
</div>
</div>
)
}
</div>
);
Expand Down

0 comments on commit 10982de

Please sign in to comment.