|
|
|
@ -196,11 +196,12 @@ export default class Card extends React.PureComponent {
|
|
|
|
|
const interactive = card.get('type') !== 'link';
|
|
|
|
|
const className = classnames('status-card', { horizontal, compact, interactive });
|
|
|
|
|
const title = interactive ? <a className='status-card__title' href={card.get('url')} title={card.get('title')} rel='noopener noreferrer' target='_blank'><strong>{card.get('title')}</strong></a> : <strong className='status-card__title' title={card.get('title')}>{card.get('title')}</strong>;
|
|
|
|
|
const language = card.get('language') || '';
|
|
|
|
|
const ratio = card.get('width') / card.get('height');
|
|
|
|
|
const height = (compact && !embedded) ? (width / (16 / 9)) : (width / ratio);
|
|
|
|
|
|
|
|
|
|
const description = (
|
|
|
|
|
<div className='status-card__content'>
|
|
|
|
|
<div className='status-card__content' lang={language}>
|
|
|
|
|
{title}
|
|
|
|
|
{!(horizontal || compact) && <p className='status-card__description'>{trim(card.get('description') || '', maxDescription)}</p>}
|
|
|
|
|
<span className='status-card__host'>{provider}</span>
|
|
|
|
|