This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push: new 0483c26 style(sqllab): fixed button width as label changes (#10404) 0483c26 is described below commit 0483c26254bec2d70c8e86c1468ecb7d891ea102 Author: Maxime Beauchemin <maximebeauche...@gmail.com> AuthorDate: Fri Jul 24 10:05:07 2020 -0700 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. --- superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx index 84a8782..5d6ac94 100644 --- a/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx +++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton.tsx @@ -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) {