From 1c093f70a434f2903b975e7e9f5c0efca5dc6fa4 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 3 Oct 2018 14:37:59 -0300 Subject: [PATCH] image thumbnail not centered (#2210) * image thumbnail not centered * feedback review --- .../file_attachment_list/file_attachment_image.js | 11 ++++------- .../file_upload_item/file_upload_item.js | 2 -- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/components/file_attachment_list/file_attachment_image.js b/app/components/file_attachment_list/file_attachment_image.js index 073974166..ab711e7ea 100644 --- a/app/components/file_attachment_list/file_attachment_image.js +++ b/app/components/file_attachment_list/file_attachment_image.js @@ -37,8 +37,6 @@ export default class FileAttachmentImage extends PureComponent { onCaptureRef: PropTypes.func, resizeMode: PropTypes.string, resizeMethod: PropTypes.string, - wrapperHeight: PropTypes.number, - wrapperWidth: PropTypes.number, }; static defaultProps = { @@ -49,8 +47,6 @@ export default class FileAttachmentImage extends PureComponent { loading: false, resizeMode: 'cover', resizeMethod: 'resize', - wrapperHeight: 80, - wrapperWidth: 80, }; constructor(props) { @@ -99,8 +95,6 @@ export default class FileAttachmentImage extends PureComponent { imageSize, resizeMethod, resizeMode, - wrapperHeight, - wrapperWidth, } = this.props; let height = imageHeight; @@ -123,7 +117,7 @@ export default class FileAttachmentImage extends PureComponent { return ( ); } else {