fix: fckng Safari has a bug with aspect-ratio property
This commit is contained in:
parent
3d41649bf6
commit
5190978a52
|
@ -37,15 +37,20 @@
|
|||
.profile-user-avatar {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
padding-top: 100%; /* 1:1 Aspect Ratio (Safari doesn't support an actual property) */
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.profile-user-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.profile-user-avatar img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.profile-user-name {
|
||||
display: block;
|
||||
|
|
Loading…
Reference in New Issue