Skip to content

Commit

Permalink
style(sqllab): fixed button width as label changes (apache#10404)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mistercrunch authored and auxten committed Nov 20, 2020
1 parent 2291ee1 commit 66bb023
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ interface Props {
stopQuery: () => void;
sql: string;
}
const commonBtnStyle = {
width: '80px',
};

const RunQueryActionButton = ({
allowAsync = false,
Expand All @@ -51,6 +54,7 @@ const RunQueryActionButton = ({
bsSize: 'small',
bsStyle: btnStyle,
disabled: !dbId,
style: commonBtnStyle,
};

if (shouldShowStopBtn) {
Expand Down

0 comments on commit 66bb023

Please sign in to comment.