Fix image expanding and truncation issue.

This commit is contained in:
Dessalines 2020-01-15 22:33:23 -05:00
parent 7e7bb2dc34
commit 432acf4bf7
2 changed files with 18 additions and 13 deletions

View file

@ -158,3 +158,4 @@ hr {
.fl-1 { .fl-1 {
flex: 1; flex: 1;
} }

View file

@ -136,7 +136,11 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
</button> </button>
)} )}
</div> </div>
{post.url && isImage(post.url) && !post.nsfw && !post.community_nsfw && ( {post.url &&
isImage(post.url) &&
!post.nsfw &&
!post.community_nsfw &&
!this.state.imageExpanded && (
<span <span
title={i18n.t('expand_here')} title={i18n.t('expand_here')}
class="pointer" class="pointer"