fix: Fix circle image aspect ratio
This commit is contained in:
parent
3c6505b9fd
commit
61276ec4e5
1 changed files with 3 additions and 3 deletions
|
@ -42,9 +42,9 @@ export class ImageUploadForm extends Component<
|
||||||
src={this.props.imageSrc}
|
src={this.props.imageSrc}
|
||||||
height={this.props.rounded ? 60 : ""}
|
height={this.props.rounded ? 60 : ""}
|
||||||
width={this.props.rounded ? 60 : ""}
|
width={this.props.rounded ? 60 : ""}
|
||||||
className={classNames("img-fluid", {
|
className={classNames({
|
||||||
"rounded-circle ratio ratio-1x1 object-fit-cover":
|
"rounded-circle object-fit-cover": this.props.rounded,
|
||||||
this.props.rounded,
|
"img-fluid": !this.props.rounded,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
|
|
Loading…
Reference in a new issue