]> cat aescling's git repositories - mastodon.git/commitdiff
Adds click-able div that expands status (#10733) (#10766)
authorNeil Moore <dar13.dev@gmail.com>
Wed, 15 May 2019 04:53:23 +0000 (00:53 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 15 May 2019 04:53:23 +0000 (06:53 +0200)
The clickable div is positioned under the account avatar and covers
all empty space below it to the end of the status.

app/javascript/mastodon/components/status.js
app/javascript/styles/mastodon/components.scss

index 95ca4a5485d6d1920ae2efbb9995c5185765aa93..42535ea687148c6873bf1719c8762985fd5ff2c6 100644 (file)
@@ -356,6 +356,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.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>
 
index 834563ee9fdda8188739f7ce3a1132499ddf1229..906ee98498df9864abfd03399939227db5333312 100644 (file)
@@ -1412,6 +1412,15 @@ a.account__display-name {
   width: 48px;
 }
 
+.status__expand {
+  width: 68px;
+  position: absolute;
+  left: 0;
+  top: 0;
+  height: 100%;
+  cursor: pointer;
+}
+
 .muted {
   .status__content p,
   .status__content a {