fix(sqllab): button width isn't wide enough for 'Run Selection' (#10461)

This commit is contained in:
Maxime Beauchemin 2020-07-29 16:21:21 -07:00 committed by GitHub
parent 796f8e7d26
commit edaf785815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ interface Props {
sql: string;
}
const commonBtnStyle = {
width: '80px',
width: '140px',
};
const RunQueryActionButton = ({
@ -45,7 +45,7 @@ const RunQueryActionButton = ({
stopQuery = NO_OP,
sql = '',
}: Props) => {
const runBtnText = selectedText ? t('Run Selected Query') : t('Run');
const runBtnText = selectedText ? t('Run Selection') : t('Run');
const btnStyle = selectedText ? 'warning' : 'primary';
const shouldShowStopBtn =
!!queryState && ['running', 'pending'].indexOf(queryState) > -1;