mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
Merge pull request #1210 from alectrocute/avatar-aspect-ratio-fix
Fix avatar/icon aspect ratio
This commit is contained in:
commit
b7f5c0e43e
2 changed files with 7 additions and 2 deletions
|
@ -270,6 +270,10 @@ hr {
|
|||
-ms-filter: blur(10px);
|
||||
}
|
||||
|
||||
.img-cover {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.img-expanded {
|
||||
max-height: 90vh;
|
||||
}
|
||||
|
|
|
@ -38,8 +38,9 @@ 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,
|
||||
})}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue