add blurred, blended avatar background to left panel
This commit is contained in:
parent
c0a9af945c
commit
6fc4be386a
6 changed files with 30 additions and 3 deletions
|
@ -283,6 +283,9 @@ export default class UserMenu extends React.Component<IProps, IState> {
|
|||
|
||||
public render() {
|
||||
const avatarSize = 32; // should match border-radius of the avatar
|
||||
const {body} = document;
|
||||
const avatarUrl = OwnProfileStore.instance.getHttpAvatarUrl(avatarSize);
|
||||
body.style.setProperty("--avatar-url", `url('${avatarUrl}')`);
|
||||
|
||||
let name = <span className="mx_UserMenu_userName">{OwnProfileStore.instance.displayName}</span>;
|
||||
let buttons = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue