Skip to content

Commit

Permalink
Improve performance for add slice container (apache#7791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter authored and Grace Guo committed Jul 1, 2019
1 parent d1158d6 commit 15426fe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions superset/assets/src/addSlice/AddSliceContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const propTypes = {
})).isRequired,
};

const styleSelectWidth = { width: 300 };
const styleSelectWidth = { width: 600 };

export default class AddSliceContainer extends React.PureComponent {
constructor(props) {
Expand Down Expand Up @@ -83,18 +83,19 @@ export default class AddSliceContainer extends React.PureComponent {
<div style={styleSelectWidth}>
<Select
clearable={false}
style={styleSelectWidth}
ignoreAccents={false}
name="select-datasource"
onChange={this.changeDatasource}
options={this.props.datasources}
placeholder={t('Choose a datasource')}
style={styleSelectWidth}
value={this.state.datasourceValue}
width={200}
width={600}
/>
</div>
<p className="text-muted">
{t(
'If the datasource your are looking for is not ' +
'If the datasource you are looking for is not ' +
'available in the list, ' +
'follow the instructions on the how to add it on the ')}
<a href="https://superset.apache.org/tutorial.html">{t('Superset tutorial')}</a>
Expand Down

0 comments on commit 15426fe

Please sign in to comment.