make backdrop closer to what is happening in production

This commit is contained in:
Germain Souquet 2021-06-25 14:09:49 +01:00
parent 533d5ad664
commit 5932b93325
6 changed files with 24 additions and 5 deletions

View file

@ -22,6 +22,7 @@ interface IProps {
height?: number;
backgroundImage?: CanvasImageSource;
blur?: string;
opacity?: number;
}
@ -31,6 +32,7 @@ export default class BackdropPanel extends React.PureComponent<IProps> {
static defaultProps = {
blur: "60px",
opacity: .15,
}
public componentDidMount() {
@ -82,6 +84,9 @@ export default class BackdropPanel extends React.PureComponent<IProps> {
return <canvas
ref={this.canvasRef}
className="mx_BackdropPanel"
style={{
opacity: this.props.opacity,
}}
/>;
}
}