Display fallback link card thumbnail when none is given (#9715)

lolsob-rspec
Eugen Rochko 2019-01-04 12:44:46 +01:00 committed by GitHub
parent 1bd7044dbc
commit 39d81be7de
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

@ -2587,6 +2587,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 {