Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Remove div container taking up width (#425)
Browse files Browse the repository at this point in the history
this blocks users from clicking messages directly behind the NewMessageIndicator compnent
  • Loading branch information
csduarte authored and jwilander committed Dec 13, 2017
1 parent 191a102 commit b28ae6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/post_view/new_message_indicator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class NewMessageIndicator extends React.PureComponent {
render() {
const unreadIcon = Constants.UNREAD_ICON_SVG;
let className = 'new-messages__button';
if (this.state.visible > 0) {
if (this.state.visible) {
className += ' visible';
}
if (!this.state.rendered) {
Expand Down
4 changes: 2 additions & 2 deletions sass/layout/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,12 @@

.new-messages__button {
@include opacity(0);
@include translateX(-50%);
bottom: 0;
font-size: 13.5px;
left: 0;
left: 50%;
margin: 5px auto;
position: absolute;
right: 0;
text-align: center;
visibility: hidden;
z-index: 1;
Expand Down

0 comments on commit b28ae6e

Please sign in to comment.