[Glitch] Display fallback link card thumbnail when none is given

Port 39d81be7de to glitch-soc
This commit is contained in:
Thibaut Girka 2019-01-10 20:19:45 +01:00
parent a78447a6a4
commit 95dcaccb03
2 changed files with 15 additions and 0 deletions

View file

@ -195,6 +195,12 @@ export default class Card extends React.PureComponent {
{thumbnail}
</div>
);
} else {
embed = (
<div className='status-card__image'>
<i className='fa fa-file-text' />
</div>
);
}
return (

View file

@ -740,6 +740,15 @@ a.status-card {
flex: 0 0 100px;
background: lighten($ui-base-color, 8%);
position: relative;
.fa {
font-size: 21px;
position: absolute;
transform-origin: 50% 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
.status-card.horizontal {