Allow theming member info minimise button

pull/21833/head
J. Ryan Stinnett 2019-02-18 15:49:36 +00:00
parent 19977b052f
commit 09ed795c79
2 changed files with 8 additions and 3 deletions

View File

@ -34,6 +34,10 @@ limitations under the License.
height: 16px; height: 16px;
padding: 10px 15px; padding: 10px 15px;
cursor: pointer; cursor: pointer;
mask-image: url('$(res)/img/minimise.svg');
mask-repeat: no-repeat;
mask-position: center;
background-color: $rightpanel-button-color;
} }
.mx_MemberInfo_name h2 { .mx_MemberInfo_name h2 {

View File

@ -983,9 +983,10 @@ module.exports = withMatrixClient(React.createClass({
return ( return (
<div className="mx_MemberInfo"> <div className="mx_MemberInfo">
<div className="mx_MemberInfo_name"> <div className="mx_MemberInfo_name">
<AccessibleButton className="mx_MemberInfo_cancel" onClick={this.onCancel}> <AccessibleButton className="mx_MemberInfo_cancel"
<img src={require("../../../../res/img/minimise.svg")} width="10" height="16" className="mx_filterFlipColor" alt={_t('Close')} /> onClick={this.onCancel}
</AccessibleButton> title={_t('Close')}
/>
{ e2eIconElement } { e2eIconElement }
<EmojiText element="h2">{ memberName }</EmojiText> <EmojiText element="h2">{ memberName }</EmojiText>
</div> </div>