Fix styling of disabled comment box.

This commit is contained in:
picklesrus 2020-11-18 14:40:11 -05:00
parent aed0f024c0
commit fe9d9078b2
2 changed files with 8 additions and 4 deletions

View file

@ -32,9 +32,6 @@
&:not(:focus) {
border: 2px solid $active-dark-gray;
}
&:disabled {
background-color: $box-shadow-light-gray;
}
}
}
@ -278,6 +275,10 @@
}
}
.compose-disabled {
opacity: .5;
}
.comments-root-reply {
margin-bottom: 1.5rem;
}

View file

@ -186,7 +186,10 @@ class ComposeComment extends React.Component {
</FlexRow>
) : null }
<div
className="flex-row comment"
className={classNames('flex-row',
'comment',
this.state.status === ComposeStatus.REJECTED_MUTE ?
'compose-disabled' : '')}
>
<a href={`/users/${this.props.user.username}`}>
<Avatar src={this.props.user.thumbnailUrl} />