diff --git a/src/assets/css/main.css b/src/assets/css/main.css index a0d72394..1c45341d 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -270,6 +270,10 @@ hr { -ms-filter: blur(10px); } +.img-cover { + object-fit: cover; +} + .img-expanded { max-height: 90vh; } diff --git a/src/shared/components/common/pictrs-image.tsx b/src/shared/components/common/pictrs-image.tsx index 6b9db565..91e4a18b 100644 --- a/src/shared/components/common/pictrs-image.tsx +++ b/src/shared/components/common/pictrs-image.tsx @@ -38,8 +38,8 @@ export class PictrsImage extends Component { "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, })} />