1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

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,
}}
/>;
}
}