Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance for add slice container #7791

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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