Skip to content

Commit

Permalink
Fix image upload stretches the image
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 6, 2024
1 parent 000b868 commit 31b1bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/uploader/index.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@

.DfRemoveCover
@extend .DfRemoveIcon
position: absolute
top: $space_small
right: $space_small
color: #fff
margin-left: -2.5rem
margin-top: .5rem
width: 32px
height: 32px
justify-content: center
Expand Down
2 changes: 1 addition & 1 deletion src/components/uploader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ type InnerUploadProps = BaseUploadProps & {

export const PreviewUploadedImage = ({ imgUrl, onRemove, className, style }: ImagePreviewProps) => {
return (
<div className='d-flex'>
<div>
<img
src={resolveIpfsUrl(imgUrl)}
style={style}
Expand Down

0 comments on commit 31b1bb3

Please sign in to comment.