Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d2b942d

Browse files
authored
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
1 parent a08df49 commit d2b942d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

res/css/views/avatars/_BaseAvatar.pcss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ limitations under the License.
5555

5656
// Percy screenshot test specific CSS
5757
@media only percy {
58-
.mx_BaseAvatar_initial,
59-
.mx_BaseAvatar_initial + .mx_BaseAvatar_image {
60-
// Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot
58+
// Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot
59+
.mx_BaseAvatar_initial {
6160
background-color: $username-variant2-color !important;
61+
border-radius: 125px;
62+
}
63+
.mx_RoomAvatar_isSpaceRoom .mx_BaseAvatar_initial {
64+
border-radius: 8px;
65+
}
66+
.mx_BaseAvatar_initial + .mx_BaseAvatar_image {
67+
visibility: hidden;
6268
}
6369
}

0 commit comments

Comments
 (0)