style(sqllab): fixed button width as label changes (#10404)
As the label change from RUN to STOP, the row of button shifts left/right. This fixes the width so that it doesn't jitter.
This commit is contained in:
parent
a10b185248
commit
0483c26254
|
|
@ -32,6 +32,9 @@ interface Props {
|
||||||
stopQuery: () => void;
|
stopQuery: () => void;
|
||||||
sql: string;
|
sql: string;
|
||||||
}
|
}
|
||||||
|
const commonBtnStyle = {
|
||||||
|
width: '80px',
|
||||||
|
};
|
||||||
|
|
||||||
const RunQueryActionButton = ({
|
const RunQueryActionButton = ({
|
||||||
allowAsync = false,
|
allowAsync = false,
|
||||||
|
|
@ -51,6 +54,7 @@ const RunQueryActionButton = ({
|
||||||
bsSize: 'small',
|
bsSize: 'small',
|
||||||
bsStyle: btnStyle,
|
bsStyle: btnStyle,
|
||||||
disabled: !dbId,
|
disabled: !dbId,
|
||||||
|
style: commonBtnStyle,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (shouldShowStopBtn) {
|
if (shouldShowStopBtn) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue