Improve performance for add slice container (#7791)

This commit is contained in:
Erik Ritter 2019-07-01 10:55:12 -07:00 committed by Grace Guo
parent d1158d6f4b
commit 15426febbe
1 changed files with 5 additions and 4 deletions

View File

@ -31,7 +31,7 @@ const propTypes = {
})).isRequired,
};
const styleSelectWidth = { width: 300 };
const styleSelectWidth = { width: 600 };
export default class AddSliceContainer extends React.PureComponent {
constructor(props) {
@ -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>