Corrects syntax for spoiler tags to valid HTML (fixes #10)
This commit is contained in:
		@ -223,7 +223,7 @@ export default class StatusContent extends React.PureComponent {
 | 
			
		||||
          <p style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}>
 | 
			
		||||
            <span dangerouslySetInnerHTML={spoilerContent} lang={status.get('language')} />
 | 
			
		||||
            {' '}
 | 
			
		||||
            {status.get('activity_pub_type') === 'Article' ? '' : <div><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></div>}
 | 
			
		||||
            {status.get('activity_pub_type') === 'Article' ? '' : <span class="show_more_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></span>}
 | 
			
		||||
          </p>
 | 
			
		||||
 | 
			
		||||
          {mentionsPlaceholder}
 | 
			
		||||
 | 
			
		||||
@ -6027,3 +6027,14 @@ noscript {
 | 
			
		||||
    padding: 0.35rem;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
div.status__content,
 | 
			
		||||
div.status__content--with-action,
 | 
			
		||||
div.status__content--with-spoiler {
 | 
			
		||||
  p {
 | 
			
		||||
    span.show_more_button {
 | 
			
		||||
      display: block;
 | 
			
		||||
      margin: 0.25rem 0 0 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user