mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
refactor: Replace SqlLab components' styles using Emotion & theme variables (#11780)
* Replace inline styles for SqlLab components using Emotion and Theme variables * Replace styles classnames for SqlLab components using Emotion * Remove unnecessary styles & round padding value
This commit is contained in:
@@ -118,16 +118,14 @@ const QueryTable = props => {
|
||||
);
|
||||
q.started = moment(q.startDttm).format('HH:mm:ss');
|
||||
q.querylink = (
|
||||
<div style={{ width: '100px' }}>
|
||||
<Button
|
||||
buttonSize="small"
|
||||
buttonStyle="link"
|
||||
onClick={() => openQuery(q.queryId)}
|
||||
>
|
||||
<i className="fa fa-external-link m-r-3" />
|
||||
{t('Edit')}
|
||||
</Button>
|
||||
</div>
|
||||
<Button
|
||||
buttonSize="small"
|
||||
buttonStyle="link"
|
||||
onClick={() => openQuery(q.queryId)}
|
||||
>
|
||||
<i className="fa fa-external-link m-r-3" />
|
||||
{t('Edit')}
|
||||
</Button>
|
||||
);
|
||||
q.sql = (
|
||||
<Well>
|
||||
@@ -172,7 +170,6 @@ const QueryTable = props => {
|
||||
}
|
||||
q.progress = (
|
||||
<ProgressBar
|
||||
style={{ width: '75px' }}
|
||||
striped
|
||||
now={q.progress}
|
||||
label={`${q.progress.toFixed(0)}%`}
|
||||
@@ -193,7 +190,7 @@ const QueryTable = props => {
|
||||
</div>
|
||||
);
|
||||
q.actions = (
|
||||
<div style={{ width: '75px' }}>
|
||||
<div>
|
||||
<Link
|
||||
className="fa fa-pencil m-r-3"
|
||||
onClick={() => restoreSql(query)}
|
||||
|
||||
Reference in New Issue
Block a user