style profile info

pull/21833/head
Bruno Windels 2019-11-12 16:26:26 +01:00
parent f4988392f9
commit 3e356756aa
2 changed files with 28 additions and 24 deletions

View File

@ -22,13 +22,6 @@ limitations under the License.
overflow-y: auto; overflow-y: auto;
} }
.mx_UserInfo_profile .mx_E2EIcon {
display: inline;
margin: auto;
padding-right: 25px;
mask-size: contain;
}
.mx_UserInfo_cancel { .mx_UserInfo_cancel {
height: 16px; height: 16px;
width: 16px; width: 16px;
@ -41,16 +34,10 @@ limitations under the License.
position: absolute; position: absolute;
} }
.mx_UserInfo_profile h2 {
flex: 1;
overflow-x: auto;
max-height: 50px;
}
.mx_UserInfo h2 { .mx_UserInfo h2 {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
margin: 16px 0 8px 0; margin: 0;
} }
.mx_UserInfo_container { .mx_UserInfo_container {
@ -76,6 +63,7 @@ limitations under the License.
.mx_UserInfo_avatar { .mx_UserInfo_avatar {
margin: 24px 32px 0 32px; margin: 24px 32px 0 32px;
cursor: pointer;
} }
.mx_UserInfo_avatar > div { .mx_UserInfo_avatar > div {
@ -110,11 +98,29 @@ limitations under the License.
margin: 4px 0; margin: 4px 0;
} }
.mx_UserInfo_profileField { .mx_UserInfo_profile {
font-size: 15px; font-size: 12px;
position: relative;
text-align: center; text-align: center;
h2 {
flex: 1;
overflow-x: auto;
max-height: 50px;
display: flex;
justify-self: ;
justify-content: center;
align-items: center;
.mx_E2EIcon {
margin: 5px;
} }
}
.mx_UserInfo_profileStatus {
margin-top: 12px;
}
}
.mx_UserInfo_memberDetails { .mx_UserInfo_memberDetails {
text-align: center; text-align: center;

View File

@ -1157,7 +1157,7 @@ const UserInfo = withLegacyMatrixClient(({matrixClient: cli, user, groupId, room
let e2eIcon; let e2eIcon;
if (isRoomEncrypted && devices) { if (isRoomEncrypted && devices) {
e2eIcon = <E2EIcon status={_getE2EStatus(devices)} isUser={true} />; e2eIcon = <E2EIcon size={18} status={_getE2EStatus(devices)} isUser={true} />;
} }
return ( return (
@ -1167,16 +1167,14 @@ const UserInfo = withLegacyMatrixClient(({matrixClient: cli, user, groupId, room
<div className="mx_UserInfo_container"> <div className="mx_UserInfo_container">
<div className="mx_UserInfo_profile"> <div className="mx_UserInfo_profile">
<div className="mx_UserInfo_profileField"> <div >
<h2> <h2 aria-label={displayName}>
{ e2eIcon } { e2eIcon }
{ displayName } { displayName }
</h2> </h2>
</div> </div>
<div className="mx_UserInfo_profileField"> <div>{ user.userId }</div>
{ user.userId } <div className="mx_UserInfo_profileStatus">
</div>
<div className="mx_UserInfo_profileField">
{presenceLabel} {presenceLabel}
{statusLabel} {statusLabel}
</div> </div>