add .img-cover class, implement

This commit is contained in:
Alec Armbruster 2023-06-12 13:00:18 -04:00
parent c4f45c503b
commit 1aa934584f
No known key found for this signature in database
GPG key ID: 0BE3206ADE0F3B3B
2 changed files with 6 additions and 2 deletions

View file

@ -270,6 +270,10 @@ hr {
-ms-filter: blur(10px);
}
.img-cover {
object-fit: cover;
}
.img-expanded {
max-height: 90vh;
}

View file

@ -38,8 +38,8 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
"img-expanded slight-radius":
!this.props.thumbnail && !this.props.icon,
"img-blur": this.props.thumbnail && this.props.nsfw,
"rounded-circle img-icon mr-2": this.props.icon,
"ml-2 mb-0 rounded-circle avatar-overlay": this.props.iconOverlay,
"rounded-circle img-cover img-icon mr-2": this.props.icon,
"ml-2 mb-0 rounded-circle img-cover avatar-overlay": this.props.iconOverlay,
"avatar-pushup": this.props.pushup,
})}
/>