Skip to content

Commit c1f39fb

Browse files
Dar13Gargron
authored andcommitted
Adds click-able div that expands status (mastodon#10733) (mastodon#10766)
The clickable div is positioned under the account avatar and covers all empty space below it to the end of the status.
1 parent 5f7709a commit c1f39fb

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

app/javascript/mastodon/components/status.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ class Status extends ImmutablePureComponent {
356356
{prepend}
357357

358358
<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')}>
359+
<div className='status__expand' onClick={this.handleClick} role='presentation' />
359360
<div className='status__info'>
360361
<a href={status.get('url')} className='status__relative-time' target='_blank' rel='noopener'><RelativeTimestamp timestamp={status.get('created_at')} /></a>
361362

app/javascript/styles/mastodon/components.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,15 @@ a.account__display-name {
14121412
width: 48px;
14131413
}
14141414

1415+
.status__expand {
1416+
width: 68px;
1417+
position: absolute;
1418+
left: 0;
1419+
top: 0;
1420+
height: 100%;
1421+
cursor: pointer;
1422+
}
1423+
14151424
.muted {
14161425
.status__content p,
14171426
.status__content a {

0 commit comments

Comments
 (0)