Fix avatars of knock members for people tab of room settings (#11506)

Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
t3chguy/dedup-icons-17oct
Charly Nguyen 2023-09-01 11:40:35 +02:00 committed by GitHub
parent b1f17f5478
commit 6faad7aae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -24,6 +24,11 @@ limitations under the License.
margin: 0 var(--cpd-space-4x);
}
.mx_PeopleRoomSettingsTab_avatar {
align-self: flex-start;
flex-shrink: 0;
}
.mx_PeopleRoomSettingsTab_name {
font-weight: var(--cpd-font-weight-semibold);
}

View File

@ -82,7 +82,7 @@ const Knock: VFC<{
return (
<div className="mx_PeopleRoomSettingsTab_knock">
<MemberAvatar member={roomMember} size="42px" />
<MemberAvatar className="mx_PeopleRoomSettingsTab_avatar" member={roomMember} size="42px" />
<div className="mx_PeopleRoomSettingsTab_content">
<span className="mx_PeopleRoomSettingsTab_name">{roomMember.name}</span>
<Timestamp roomMember={roomMember} />

View File

@ -17,7 +17,7 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests fully 1`]
>
<span
aria-label="Profile picture"
class="_avatar_2lhia_17 mx_BaseAvatar"
class="_avatar_2lhia_17 mx_BaseAvatar mx_PeopleRoomSettingsTab_avatar"
data-color="4"
data-testid="avatar-img"
data-type="round"
@ -111,7 +111,7 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests reduced 1`
class="mx_PeopleRoomSettingsTab_knock"
>
<span
class="_avatar_2lhia_17 mx_BaseAvatar _avatar-imageless_2lhia_56"
class="_avatar_2lhia_17 mx_BaseAvatar mx_PeopleRoomSettingsTab_avatar _avatar-imageless_2lhia_56"
data-color="4"
data-testid="avatar-img"
data-type="round"