[sql lab] minor cosmetic touchups on Run / Save buttons (#3850)

This commit is contained in:
Maxime Beauchemin 2017-11-13 12:39:28 -08:00 committed by Grace Guo
parent 068c343be0
commit 514f9452f3
3 changed files with 21 additions and 25 deletions

View File

@ -65,12 +65,7 @@ export default function RunQueryActionButton(props) {
} else { } else {
button = syncBtn; button = syncBtn;
} }
return button;
return (
<div className="inline m-r-5 pull-left">
{button}
</div>
);
} }
RunQueryActionButton.propTypes = propTypes; RunQueryActionButton.propTypes = propTypes;

View File

@ -165,21 +165,26 @@ class SqlEditor extends React.PureComponent {
<div className="sql-toolbar clearfix" id="js-sql-toolbar"> <div className="sql-toolbar clearfix" id="js-sql-toolbar">
<div className="pull-left"> <div className="pull-left">
<Form inline> <Form inline>
<RunQueryActionButton <span className="m-r-5">
allowAsync={this.props.database ? this.props.database.allow_run_async : false} <RunQueryActionButton
dbId={qe.dbId} allowAsync={this.props.database ? this.props.database.allow_run_async : false}
queryState={this.props.latestQuery && this.props.latestQuery.state} dbId={qe.dbId}
runQuery={this.runQuery.bind(this)} queryState={this.props.latestQuery && this.props.latestQuery.state}
selectedText={qe.selectedText} runQuery={this.runQuery.bind(this)}
stopQuery={this.stopQuery.bind(this)} selectedText={qe.selectedText}
/> stopQuery={this.stopQuery.bind(this)}
<SaveQuery />
defaultLabel={qe.title} </span>
sql={qe.sql} <span className="m-r-5">
onSave={this.props.actions.saveQuery} <SaveQuery
schema={qe.schema} defaultLabel={qe.title}
dbId={qe.dbId} sql={qe.sql}
/> className="m-r-5"
onSave={this.props.actions.saveQuery}
schema={qe.schema}
dbId={qe.dbId}
/>
</span>
{ctasControls} {ctasControls}
</Form> </Form>
</div> </div>

View File

@ -32,10 +32,6 @@ input.form-control {
background-color: white; background-color: white;
} }
input.form-control.input-sm {
height: 36px;
}
.chart-header a.danger { .chart-header a.danger {
color: red; color: red;
} }