mirror of https://github.com/mastodon/mastodon
Display fallback link card thumbnail when none is given (#9715)
This commit is contained in:
parent
acae118120
commit
1512af2811
|
@ -195,6 +195,12 @@ export default class Card extends React.PureComponent {
|
||||||
{thumbnail}
|
{thumbnail}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
embed = (
|
||||||
|
<div className='status-card__image'>
|
||||||
|
<i className='fa fa-file-text' />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -2587,6 +2587,15 @@ a.status-card {
|
||||||
flex: 0 0 100px;
|
flex: 0 0 100px;
|
||||||
background: lighten($ui-base-color, 8%);
|
background: lighten($ui-base-color, 8%);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
.fa {
|
||||||
|
font-size: 21px;
|
||||||
|
position: absolute;
|
||||||
|
transform-origin: 50% 50%;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-card.horizontal {
|
.status-card.horizontal {
|
||||||
|
|
Loading…
Reference in New Issue