mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
add .img-cover class, implement
This commit is contained in:
parent
c4f45c503b
commit
1aa934584f
2 changed files with 6 additions and 2 deletions
|
@ -270,6 +270,10 @@ hr {
|
||||||
-ms-filter: blur(10px);
|
-ms-filter: blur(10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.img-cover {
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
.img-expanded {
|
.img-expanded {
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,8 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
|
||||||
"img-expanded slight-radius":
|
"img-expanded slight-radius":
|
||||||
!this.props.thumbnail && !this.props.icon,
|
!this.props.thumbnail && !this.props.icon,
|
||||||
"img-blur": this.props.thumbnail && this.props.nsfw,
|
"img-blur": this.props.thumbnail && this.props.nsfw,
|
||||||
"rounded-circle img-icon mr-2": this.props.icon,
|
"rounded-circle img-cover img-icon mr-2": this.props.icon,
|
||||||
"ml-2 mb-0 rounded-circle avatar-overlay": this.props.iconOverlay,
|
"ml-2 mb-0 rounded-circle img-cover avatar-overlay": this.props.iconOverlay,
|
||||||
"avatar-pushup": this.props.pushup,
|
"avatar-pushup": this.props.pushup,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue