Hide padding if last control.

pull/21833/head
Richard Lewis 2018-03-08 17:25:28 +00:00
parent 3ab8b1f866
commit fdec4b36c9
1 changed files with 2 additions and 1 deletions

View File

@ -568,7 +568,8 @@ export default class AppTile extends React.Component {
{ /* Edit widget */ }
{ showEditButton && <TintableSvgButton
src="img/edit_green.svg"
className="mx_AppTileMenuBarWidget mx_AppTileMenuBarWidgetPadding"
className={"mx_AppTileMenuBarWidget " +
(this.props.showDelete ? "mx_AppTileMenuBarWidgetPadding" : "")}
title={_t('Edit')}
onClick={this._onEditClick}
width="10"