From 0565f1d3498ade7ce1e18f92afbe9a62e326531e Mon Sep 17 00:00:00 2001 From: Charly Nguyen Date: Thu, 31 Aug 2023 19:42:34 +0200 Subject: [PATCH] Fix avatars of knock members for people tab of room settings Signed-off-by: Charly Nguyen --- res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss | 5 +++++ .../views/settings/tabs/room/PeopleRoomSettingsTab.tsx | 2 +- .../room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss b/res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss index 0b9c5c00a28..4341d248d9f 100644 --- a/res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss +++ b/res/css/views/settings/tabs/room/_PeopleRoomSettingsTab.pcss @@ -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); } diff --git a/src/components/views/settings/tabs/room/PeopleRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/PeopleRoomSettingsTab.tsx index 750dfdf71d2..32411f54028 100644 --- a/src/components/views/settings/tabs/room/PeopleRoomSettingsTab.tsx +++ b/src/components/views/settings/tabs/room/PeopleRoomSettingsTab.tsx @@ -82,7 +82,7 @@ const Knock: VFC<{ return (
- +
{roomMember.name} diff --git a/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap b/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap index 7ba75bdef0d..8e6a9aa46aa 100644 --- a/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap +++ b/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap @@ -17,7 +17,7 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests fully 1`] >