fix: Fix circle image aspect ratio

This commit is contained in:
Jay Sitter 2023-07-02 17:14:00 -04:00
parent 3c6505b9fd
commit 61276ec4e5

View file

@ -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