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
This commit is contained in:
parent
a08df49db1
commit
d2b942de42
1 changed files with 9 additions and 3 deletions
|
@ -55,9 +55,15 @@ limitations under the License.
|
||||||
|
|
||||||
// Percy screenshot test specific CSS
|
// Percy screenshot test specific CSS
|
||||||
@media only percy {
|
@media only percy {
|
||||||
.mx_BaseAvatar_initial,
|
// Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot
|
||||||
.mx_BaseAvatar_initial + .mx_BaseAvatar_image {
|
.mx_BaseAvatar_initial {
|
||||||
// Stick the default room avatar colour, so it doesn't cause a false diff on the screenshot
|
|
||||||
background-color: $username-variant2-color !important;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue