about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorStephen Burgess <stephenburgess8@gmail.com>2018-03-26 07:59:44 -0400
committerEugen Rochko <eugen@zeonfederated.com>2018-03-26 13:59:44 +0200
commit18965cb0e611b226c6252f1669f228f5b95f1ac6 (patch)
treeba610394863428862971541af47efd72f9a9f5ad /app/javascript
parentf691afaae913fdb3041864b2824ca092e092ba84 (diff)
feat(ShowMore): Add classname to show more/show less button (#6904)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/status_content.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js
index b6082f008..9b86592f6 100644
--- a/app/javascript/mastodon/components/status_content.js
+++ b/app/javascript/mastodon/components/status_content.js
@@ -158,7 +158,7 @@ export default class StatusContent extends React.PureComponent {
           <p style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}>
             <span dangerouslySetInnerHTML={spoilerContent} />
             {' '}
-            <button tabIndex='0' className='status__content__spoiler-link' onClick={this.handleSpoilerClick}>{toggleText}</button>
+            <button tabIndex='0' className={`status__content__spoiler-link ${hidden ? 'status__content__spoiler-link--show-more' : 'status__content__spoiler-link--show-less'}`} onClick={this.handleSpoilerClick}>{toggleText}</button>
           </p>
 
           {mentionsPlaceholder}