Skip to content

Commit

Permalink
Bigger Twitter-like link previews
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Apr 7, 2023
1 parent 897aedb commit 2fff057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/javascript/mastodon/features/status/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ export default class Card extends React.PureComponent {

const description = (
<div className='status-card__content'>
{title}
{!(horizontal || compact) && <p className='status-card__description'>{trim(card.get('description') || '', maxDescription)}</p>}
<span className='status-card__host'>{provider}</span>
{title}
{<p className='status-card__description'>{trim(card.get('description') || '', 300)}</p>}
</div>
);

Expand Down Expand Up @@ -260,7 +260,7 @@ export default class Card extends React.PureComponent {
return (
<div className={className} ref={this.setRef} onClick={revealed ? null : this.handleReveal} role={revealed ? 'button' : null}>
{embed}
{!compact && description}
{description}
</div>
);
} else if (card.get('image')) {
Expand Down

0 comments on commit 2fff057

Please sign in to comment.