mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 11:15:53 +03:00
blur spoilers
This commit is contained in:
parent
d8f4512439
commit
eddac4b188
2 changed files with 4 additions and 14 deletions
|
@ -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 */
|
||||
|
|
|
@ -23,9 +23,7 @@ module.exports = React.createClass({
|
|||
<span className={"mx_EventTile_spoiler" + (this.state.visible ? " visible" : "")} onClick={this.toggleVisible.bind(this)}>
|
||||
{ reason }
|
||||
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue