Merge pull request #1322 from matrix-org/rxl881/styling

Position add app widget link
pull/21833/head
Richard Lewis 2017-08-21 14:03:27 +01:00 committed by GitHub
commit c0f0425907
1 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,10 @@ module.exports = React.createClass({
onClick={this.onClickAddWidget}
role="button"
tabIndex="0"
className="mx_AddWidget_button"
className={this.state.apps.length<2 ?
"mx_AddWidget_button mx_AddWidget_button_full_width" :
"mx_AddWidget_button"
}
title={_t('Add a widget')}>
[+] {_t('Add a widget')}
</div>;