mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-24 23:04:14 +00:00
Removed line break before spoiler link, changed color of bg for spoiler link
This commit is contained in:
parent
ebe5095665
commit
589837cfc7
|
@ -87,7 +87,7 @@ const StatusContent = React.createClass({
|
||||||
const content = { __html: emojify(status.get('content')) };
|
const content = { __html: emojify(status.get('content')) };
|
||||||
const spoilerContent = { __html: emojify(status.get('spoiler_text', '')) };
|
const spoilerContent = { __html: emojify(status.get('spoiler_text', '')) };
|
||||||
const spoilerStyle = {
|
const spoilerStyle = {
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#616b86',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
color: '#363c4b',
|
color: '#363c4b',
|
||||||
fontWeight: '500',
|
fontWeight: '500',
|
||||||
|
@ -103,8 +103,7 @@ const StatusContent = React.createClass({
|
||||||
return (
|
return (
|
||||||
<div className='status__content' style={{ cursor: 'pointer' }} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
|
<div className='status__content' style={{ cursor: 'pointer' }} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
|
||||||
<p style={{ marginBottom: hidden ? '0px' : '' }} >
|
<p style={{ marginBottom: hidden ? '0px' : '' }} >
|
||||||
<span dangerouslySetInnerHTML={spoilerContent} />
|
<span dangerouslySetInnerHTML={spoilerContent} /> <a style={spoilerStyle} onClick={this.handleSpoilerClick}>[{toggleText}]</a>
|
||||||
<a style={spoilerStyle} onClick={this.handleSpoilerClick}>[{toggleText}]</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div style={{ display: hidden ? 'none' : 'block' }} dangerouslySetInnerHTML={content} />
|
<div style={{ display: hidden ? 'none' : 'block' }} dangerouslySetInnerHTML={content} />
|
||||||
|
|
Loading…
Reference in a new issue