]> cat aescling's git repositories - mastodon.git/commitdiff
Cleanup redundant markup for hidden statuses
authorThibaut Girka <thib@sitedethib.com>
Wed, 6 Feb 2019 18:48:28 +0000 (19:48 +0100)
committerThibG <thib@sitedethib.com>
Sun, 10 Feb 2019 21:54:25 +0000 (22:54 +0100)
app/javascript/flavours/glitch/components/status.js

index 9ff53485e8fba9097f22195900c8b5f7a7f48076..80cd0f42e66039fab9765a30b7d98d52ea49eb51 100644 (file)
@@ -384,15 +384,7 @@ export default class Status extends ImmutablePureComponent {
 
     if (hidden) {
       return (
-        <div
-          ref={this.handleRef}
-          data-id={status.get('id')}
-          style={{
-            height: `${this.height}px`,
-            opacity: 0,
-            overflow: 'hidden',
-          }}
-        >
+        <div ref={this.handleRef}>
           {status.getIn(['account', 'display_name']) || status.getIn(['account', 'username'])}
           {' '}
           {status.get('content')}