mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
Struggling with hiding elements.
This commit is contained in:
@@ -102,8 +102,8 @@ class CommentStream extends Component {
|
||||
? <div>
|
||||
<div id="commentBox">
|
||||
<InfoBox
|
||||
content={this.props.config.infoBox.content}
|
||||
enable={this.props.config.infoBox.enable}/>
|
||||
content={this.props.config.infoBoxContent}
|
||||
enable={this.props.config.infoBoxEnable}/>
|
||||
<Count
|
||||
id={rootItemId}
|
||||
items={this.props.items}/>
|
||||
|
||||
@@ -58,6 +58,12 @@ hr {
|
||||
color: white;
|
||||
border-radius: 2px;
|
||||
font-weight: bold;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
visibility: hidden;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Comment Box Styles */
|
||||
|
||||
@@ -3,8 +3,7 @@ const packagename = 'coral-plugin-infobox';
|
||||
|
||||
const InfoBox = ({enable, content}) =>
|
||||
<div
|
||||
className={`${packagename}-info`}
|
||||
hidden={`${!enable}`}>
|
||||
className={`${packagename}-info ${enable ? '' : ', hidden'}` }>
|
||||
{content}
|
||||
</div>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user