blur spoilers

This commit is contained in:
Sorunome 2019-06-11 21:08:45 +02:00
parent d8f4512439
commit eddac4b188
No known key found for this signature in database
GPG key ID: 63E31F7B5993A9C4
2 changed files with 4 additions and 14 deletions

View file

@ -291,20 +291,12 @@ limitations under the License.
}
.mx_EventTile_spoiler_content {
background-color: black;
filter: blur(5px) saturate(0.1) sepia(1);
transition-duration: 0.5s;
}
.mx_EventTile_spoiler_content > span {
visibility: hidden;
}
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content {
background-color: initial;
}
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content > span {
visibility: visible;
filter: none;
}
/* End to end encryption stuff */

View file

@ -23,9 +23,7 @@ module.exports = React.createClass({
<span className={"mx_EventTile_spoiler" + (this.state.visible ? " visible" : "")} onClick={this.toggleVisible.bind(this)}>
{ reason }
&nbsp;
<span className="mx_EventTile_spoiler_content">
<span dangerouslySetInnerHTML={{ __html: this.props.contentHtml }} />
</span>
<span className="mx_EventTile_spoiler_content" dangerouslySetInnerHTML={{ __html: this.props.contentHtml }} />
</span>
);
}