mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 02:15:11 +00:00
fix: Fix circle image aspect ratio
This commit is contained in:
parent
3c6505b9fd
commit
61276ec4e5
|
@ -42,9 +42,9 @@ export class ImageUploadForm extends Component<
|
|||
src={this.props.imageSrc}
|
||||
height={this.props.rounded ? 60 : ""}
|
||||
width={this.props.rounded ? 60 : ""}
|
||||
className={classNames("img-fluid", {
|
||||
"rounded-circle ratio ratio-1x1 object-fit-cover":
|
||||
this.props.rounded,
|
||||
className={classNames({
|
||||
"rounded-circle object-fit-cover": this.props.rounded,
|
||||
"img-fluid": !this.props.rounded,
|
||||
})}
|
||||
/>
|
||||
<button
|
||||
|
|
Loading…
Reference in a new issue