mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #2344 from paulkaplan/fix-comment-actions
Show comment actions on hover and fix report translation
This commit is contained in:
commit
d31cbe58e2
2 changed files with 5 additions and 1 deletions
|
@ -158,7 +158,7 @@ class Comment extends React.Component {
|
||||||
className="comment-report"
|
className="comment-report"
|
||||||
onClick={this.handleReport}
|
onClick={this.handleReport}
|
||||||
>
|
>
|
||||||
<FormattedMessage id="comments.report" />
|
<FormattedMessage id="general.report" />
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|
|
@ -289,3 +289,7 @@
|
||||||
margin-right: -50%;
|
margin-right: -50%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Hide the action list buttons (delete/report/restore) until hover over */
|
||||||
|
.comment .action-list { opacity: 0; }
|
||||||
|
.comment:hover .action-list { opacity: 1; }
|
||||||
|
|
Loading…
Reference in a new issue