improve icon placement in FileTile

This commit is contained in:
Sean Yesmunt 2018-08-06 14:40:33 -04:00
parent 0d2eab88da
commit 7944ab556a
2 changed files with 11 additions and 2 deletions

View file

@ -123,8 +123,10 @@ class FileTile extends React.PureComponent<Props> {
'card__subtitle--x-small': small,
})}
>
<span className="file-tile__channel">
{showUri ? uri : channel || __('Anonymous')}
{isRewardContent && <Icon icon={icons.FEATURED} />}
</span>
{isRewardContent && <Icon iconColor="red" icon={icons.FEATURED} />}
{showLocal && isDownloaded && <Icon icon={icons.LOCAL} />}
</div>
<FilePrice hideFree uri={uri} />

View file

@ -31,9 +31,16 @@
.card__subtitle {
line-height: 1;
display: flex;
align-items: center;
// justify-content: space-between;
}
}
.file-tile__channel {
padding-right: $spacing-width * 1/4;
}
.file-tile.file-tile--small {
padding-top: $spacing-vertical * 2/3;