Reorganize HTML

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-06-01 07:55:55 +02:00
parent d05b1798b8
commit 5e4a10ab84
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
2 changed files with 28 additions and 18 deletions

View File

@ -26,15 +26,20 @@ limitations under the License.
max-width: 75%; max-width: 75%;
box-sizing: border-box; box-sizing: border-box;
.mx_CallEvent_content { .mx_CallEvent_info {
display: flex; display: flex;
flex-direction: column; flex-direction: row;
margin-left: 10px; // To match mx_CallEvent
.mx_CallEvent_type { .mx_CallEvent_info_basic {
font-weight: 400; display: flex;
color: gray; flex-direction: column;
line-height: $font-14px; margin-left: 10px; // To match mx_CallEvent
.mx_CallEvent_type {
font-weight: 400;
color: gray;
line-height: $font-14px;
}
} }
} }
} }

View File

@ -31,21 +31,26 @@ export default class CallEvent extends React.Component<IProps> {
const event = this.props.mxEvent; const event = this.props.mxEvent;
const sender = event.sender ? event.sender.name : event.getSender(); const sender = event.sender ? event.sender.name : event.getSender();
let content;
return ( return (
<div className="mx_CallEvent"> <div className="mx_CallEvent">
<MemberAvatar <div className="mx_CallEvent_info">
member={event.sender} <MemberAvatar
width={32} member={event.sender}
height={32} width={32}
/> height={32}
<div className="mx_CallEvent_content"> />
<div> <div className="mx_CallEvent_info_basic">
{sender} <div>
</div> { sender }
<div className="mx_CallEvent_type"> </div>
{ this.props.callState.isVoice ? _t("Voice call") : _t("Video call") } <div className="mx_CallEvent_type">
{ this.props.callState.isVoice ? _t("Voice call") : _t("Video call") }
</div>
</div> </div>
</div> </div>
{ content }
</div> </div>
); );
} }