mirror of
https://github.com/funamitech/mastodon
synced 2024-11-30 07:49:04 +09:00
[Glitch] Display fallback link card thumbnail when none is given
Port 1512af2811
to glitch-soc
This commit is contained in:
parent
a2a64ecd3e
commit
2b2584a37b
@ -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 (
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user