Skip to content

Commit

Permalink
Adds click-able div that expands status (mastodon#10733) (mastodon#10766
Browse files Browse the repository at this point in the history
)

The clickable div is positioned under the account avatar and covers
all empty space below it to the end of the status.
  • Loading branch information
Dar13 authored and highemerly committed Jun 24, 2019
1 parent 718aa75 commit 5760122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class Status extends ImmutablePureComponent {
{prepend}

<div className={classNames('status', `status-${status.get('visibility')}`, { 'status-reply': !!status.get('in_reply_to_id'), muted: this.props.muted, read: unread === false })} data-id={status.get('id')}>
<div className='status__expand' onClick={this.handleExpandClick} role='presentation' />
<div className='status__expand' onClick={this.handleClick} role='presentation' />
<div className='status__info'>
<a href={status.get('url')} className='status__relative-time' target='_blank' rel='noopener'><RelativeTimestamp timestamp={status.get('created_at')} /></a>

Expand Down

0 comments on commit 5760122

Please sign in to comment.