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

Commit

Permalink
Fix avatars in percy not having the right border radius (#9102)
Browse files Browse the repository at this point in the history
* Fix avatars in percy not having the right border radius

* Fix percy media for base avatars
  • Loading branch information
t3chguy authored Jul 26, 2022
1 parent a08df49 commit d2b942d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions res/css/views/avatars/_BaseAvatar.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit d2b942d

Please sign in to comment.