fix claim result channel thumbnail view

This commit is contained in:
Akinwale Ariwodola 2020-01-09 17:35:10 +01:00
parent f1aafd6e34
commit 7a3def7ea1
2 changed files with 8 additions and 1 deletions

View file

@ -85,7 +85,7 @@ class ClaimResultItem extends React.PureComponent {
)}
{isChannel && (
<View style={fileListStyle.thumbnail}>
<View style={fileListStyle.channelThumbnailView}>
<View style={[fileListStyle.channelThumbnailContainer, this.state.autoStyle]}>
{hasThumbnail && (
<FastImage

View file

@ -39,6 +39,13 @@ const fileListStyle = StyleSheet.create({
alignItems: 'center',
justifyContent: 'center',
},
channelThumbnailView: {
width: thumbnailWidth,
height: thumbnailHeight,
marginRight: screenWidthPixels <= 720 ? 10 : 12,
alignItems: 'center',
justifyContent: 'center',
},
channelThumbnailContainer: {
width: thumbnailHeight, // maintain same width and height
height: thumbnailHeight,