Skip to content

Commit

Permalink
fix(components): button display incorrectly when width is set
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 5, 2019
1 parent de3a596 commit 1693421
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/components/Button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Button extends React.Component {
disabled={disabled}
style={renderStyleOverride}
>
<div className={'uk-float-left'}> {text}</div>
<div className={'uk-float-left uk-width-1-1 uk-text-center'}> {text}</div>
{hasDropdown && (
<i className={'material-icons'} style={{ fontSize: '18px', margin: '5px 0 0 5px' }}>
Expand Down
2 changes: 0 additions & 2 deletions src/client/sagas/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ function * checkMongoDBTools ({ payload }) {
const response = yield call(api.settings.hasMongoDBTools, payload)
yield put({ type: FETCH_MONGODB_TOOLS.SUCCESS, response })
} catch (error) {
const errorText = error.response.data.error
helpers.UI.showSnackbar(`Error: ${errorText}`, true)
yield put({ type: FETCH_MONGODB_TOOLS.ERROR, error })
}
}
Expand Down

0 comments on commit 1693421

Please sign in to comment.