Browse Source

Removed line break before spoiler link, changed color of bg for spoiler link

closed-social-v3
Anthony Bellew 7 years ago
committed by GitHub
parent
commit
589837cfc7
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      app/assets/javascripts/components/components/status_content.jsx

+ 2
- 3
app/assets/javascripts/components/components/status_content.jsx View File

@ -87,7 +87,7 @@ const StatusContent = React.createClass({
const content = { __html: emojify(status.get('content')) };
const spoilerContent = { __html: emojify(status.get('spoiler_text', '')) };
const spoilerStyle = {
backgroundColor: '#fff',
backgroundColor: '#616b86',
borderRadius: '4px',
color: '#363c4b',
fontWeight: '500',
@ -103,8 +103,7 @@ const StatusContent = React.createClass({
return (
<div className='status__content' style={{ cursor: 'pointer' }} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
<p style={{ marginBottom: hidden ? '0px' : '' }} >
<span dangerouslySetInnerHTML={spoilerContent} />
<a style={spoilerStyle} onClick={this.handleSpoilerClick}>[{toggleText}]</a>
<span dangerouslySetInnerHTML={spoilerContent} /> <a style={spoilerStyle} onClick={this.handleSpoilerClick}>[{toggleText}]</a>
</p>
<div style={{ display: hidden ? 'none' : 'block' }} dangerouslySetInnerHTML={content} />

Loading…
Cancel
Save