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;
|
||||
sql: string;
|
||||
}
|
||||
const commonBtnStyle = {
|
||||
width: '80px',
|
||||
};
|
||||
|
||||
const RunQueryActionButton = ({
|
||||
allowAsync = false,
|
||||
|
|
@ -51,6 +54,7 @@ const RunQueryActionButton = ({
|
|||
bsSize: 'small',
|
||||
bsStyle: btnStyle,
|
||||
disabled: !dbId,
|
||||
style: commonBtnStyle,
|
||||
};
|
||||
|
||||
if (shouldShowStopBtn) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue