From d2b942de42301a15443b577026007fb624780d6f Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 26 Jul 2022 16:39:17 +0100 Subject: [PATCH] Fix avatars in percy not having the right border radius (#9102) * Fix avatars in percy not having the right border radius * Fix percy media for base avatars --- res/css/views/avatars/_BaseAvatar.pcss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/res/css/views/avatars/_BaseAvatar.pcss b/res/css/views/avatars/_BaseAvatar.pcss index 802a4235c1..0356264084 100644 --- a/res/css/views/avatars/_BaseAvatar.pcss +++ b/res/css/views/avatars/_BaseAvatar.pcss @@ -55,9 +55,15 @@ limitations under the License. // Percy screenshot test specific CSS @media only percy { - .mx_BaseAvatar_initial, - .mx_BaseAvatar_initial + .mx_BaseAvatar_image { - // Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot + // Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot + .mx_BaseAvatar_initial { background-color: $username-variant2-color !important; + border-radius: 125px; + } + .mx_RoomAvatar_isSpaceRoom .mx_BaseAvatar_initial { + border-radius: 8px; + } + .mx_BaseAvatar_initial + .mx_BaseAvatar_image { + visibility: hidden; } }