Fix styling of buttons

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-06-21 17:05:36 +02:00
parent c4e4dadc13
commit 202cb0f5d8
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 9 additions and 2 deletions

View file

@ -87,7 +87,12 @@ limitations under the License.
color: $secondary-fg-color;
margin-right: 16px;
.mx_CallEvent_content_callBack {
.mx_CallEvent_content_button {
height: 24px;
padding: 0px 12px;
}
.mx_CallEvent_content_button_callBack {
margin-left: 10px; // To match mx_callEvent
}

View file

@ -85,12 +85,14 @@ export default class CallEvent extends React.Component<IProps, IState> {
title={this.state.silenced ? _t("Sound on"): _t("Silence call")}
/>
<AccessibleButton
className="mx_CallEvent_content_button"
onClick={ this.props.callEventGrouper.rejectCall }
kind="danger"
>
{ _t("Decline") }
</AccessibleButton>
<AccessibleButton
className="mx_CallEvent_content_button"
onClick={ this.props.callEventGrouper.answerCall }
kind="primary"
>
@ -162,7 +164,7 @@ export default class CallEvent extends React.Component<IProps, IState> {
<div className="mx_CallEvent_content">
{ _t("You missed this call") }
<AccessibleButton
className="mx_CallEvent_content_callBack"
className="mx_CallEvent_content_button mx_CallEvent_content_button_callBack"
onClick={ this.props.callEventGrouper.callBack }
kind="primary"
>